mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-11-28 08:38:51 +02:00
Release v0.20.0 (#1837)
* Prepare for releasing v0.20.0 * Update changelog * Add version validation test * lint
This commit is contained in:
parent
aa66fe75e4
commit
02d8bdd5d9
77
CHANGELOG.md
77
CHANGELOG.md
@ -10,13 +10,41 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- - Extract resource attributes from the `OTEL_RESOURCE_ATTRIBUTES` environment variable and merge them with the `resource.Default` resource as well as resources provided to the `TracerProvider` and metric `Controller`. (#1785)
|
### Changed
|
||||||
|
|
||||||
|
### Deprecated
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
### Security
|
||||||
|
|
||||||
|
## [0.20.0] - 2021-04-23
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- The OTLP exporter now has two new convenience functions, `NewExportPipeline` and `InstallNewPipeline`, setup and install the exporter in tracing and metrics pipelines. (#1373)
|
||||||
|
- Adds semantic conventions for exceptions. (#1492)
|
||||||
- Added Jaeger Environment variables: `OTEL_EXPORTER_JAEGER_AGENT_HOST`, `OTEL_EXPORTER_JAEGER_AGENT_PORT`
|
- Added Jaeger Environment variables: `OTEL_EXPORTER_JAEGER_AGENT_HOST`, `OTEL_EXPORTER_JAEGER_AGENT_PORT`
|
||||||
These environment variables can be used to override Jaeger agent hostname and port (#1752)
|
These environment variables can be used to override Jaeger agent hostname and port (#1752)
|
||||||
- The OTLP exporter now has two new convenience functions, `NewExportPipeline` and `InstallNewPipeline`, setup and install the exporter in tracing and metrics pipelines. (#1373)
|
|
||||||
- Adds test to check BatchSpanProcessor ignores `OnEnd` and `ForceFlush` post `Shutdown`. (#1772)
|
|
||||||
- Option `ExportTimeout` was added to batch span processor. (#1755)
|
- Option `ExportTimeout` was added to batch span processor. (#1755)
|
||||||
- Adds semantic conventions for exceptions. (#1492)
|
- `trace.TraceFlags` is now a defined type over `byte` and `WithSampled(bool) TraceFlags` and `IsSampled() bool` methods have been added to it. (#1770)
|
||||||
|
- The `Event` and `Link` struct types from the `go.opentelemetry.io/otel` package now include a `DroppedAttributeCount` field to record the number of attributes that were not recorded due to configured limits being reached. (#1771)
|
||||||
|
- The Jaeger exporter now reports dropped attributes for a Span event in the exported log. (#1771)
|
||||||
|
- Adds test to check BatchSpanProcessor ignores `OnEnd` and `ForceFlush` post `Shutdown`. (#1772)
|
||||||
|
- Extract resource attributes from the `OTEL_RESOURCE_ATTRIBUTES` environment variable and merge them with the `resource.Default` resource as well as resources provided to the `TracerProvider` and metric `Controller`. (#1785)
|
||||||
|
- Added `WithOSType` resource configuration option to set OS (Operating System) type resource attribute (`os.type`). (#1788)
|
||||||
|
- Added `WithProcess*` resource configuration options to set Process resource attributes. (#1788)
|
||||||
|
- `process.pid`
|
||||||
|
- `process.executable.name`
|
||||||
|
- `process.executable.path`
|
||||||
|
- `process.command_args`
|
||||||
|
- `process.owner`
|
||||||
|
- `process.runtime.name`
|
||||||
|
- `process.runtime.version`
|
||||||
|
- `process.runtime.description`
|
||||||
|
- Adds `k8s.node.name` and `k8s.node.uid` attribute keys to the `semconv` package. (#1789)
|
||||||
- Added support for configuring OTLP/HTTP and OTLP/gRPC Endpoints, TLS Certificates, Headers, Compression and Timeout via Environment Variables. (#1758, #1769 and #1811)
|
- Added support for configuring OTLP/HTTP and OTLP/gRPC Endpoints, TLS Certificates, Headers, Compression and Timeout via Environment Variables. (#1758, #1769 and #1811)
|
||||||
- `OTEL_EXPORTER_OTLP_ENDPOINT`
|
- `OTEL_EXPORTER_OTLP_ENDPOINT`
|
||||||
- `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT`
|
- `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT`
|
||||||
@ -33,21 +61,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||||||
- `OTEL_EXPORTER_OTLP_CERTIFICATE`
|
- `OTEL_EXPORTER_OTLP_CERTIFICATE`
|
||||||
- `OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE`
|
- `OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE`
|
||||||
- `OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE`
|
- `OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE`
|
||||||
- `trace.TraceFlags` is now a defined type over `byte` and `WithSampled(bool) TraceFlags` and `IsSampled() bool` methods have been added to it. (#1770)
|
|
||||||
- The `Event` and `Link` struct types from the `go.opentelemetry.io/otel` package now include a `DroppedAttributeCount` field to record the number of attributes that were not recorded due to configured limits being reached. (#1771)
|
|
||||||
- The Jaeger exporter now reports dropped attributes for a Span event in the exported log. (#1771)
|
|
||||||
- Adds `k8s.node.name` and `k8s.node.uid` attribute keys to the `semconv` package. (#1789)
|
|
||||||
- Adds `otlpgrpc.WithTimeout` option for configuring timeout to the otlp/gRPC exporter. (#1821)
|
- Adds `otlpgrpc.WithTimeout` option for configuring timeout to the otlp/gRPC exporter. (#1821)
|
||||||
- Added `WithOSType` resource configuration option to set OS (Operating System) type resource attribute (`os.type`). (#1788)
|
|
||||||
- Added `WithProcess*` resource configuration options to set Process resource attributes. (#1788)
|
|
||||||
- `process.pid`
|
|
||||||
- `process.executable.name`
|
|
||||||
- `process.executable.path`
|
|
||||||
- `process.command_args`
|
|
||||||
- `process.owner`
|
|
||||||
- `process.runtime.name`
|
|
||||||
- `process.runtime.version`
|
|
||||||
- `process.runtime.description`
|
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
@ -62,15 +76,6 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Updated Jaeger Environment Variable: `OTEL_EXPORTER_JAEGER_ENDPOINT` to have a default value of
|
|
||||||
`http://localhost:14250` when not set, in compliance with OTel spec. Changed the function `WithCollectorEndpoint`
|
|
||||||
in the Jaeger exporter package to no longer accept an endpoint as an argument.
|
|
||||||
The endpoint can be passed in as a `CollectorEndpointOption` using the `WithEndpoint` function or
|
|
||||||
specified through the `OTEL_EXPORTER_JAEGER_ENDPOINT` environment variable. (#1824)
|
|
||||||
- Modify Zipkin Exporter default service name, use default resouce's serviceName instead of empty. (#1777)
|
|
||||||
- Updated Jaeger Environment Variables: `JAEGER_ENDPOINT`, `JAEGER_USER`, `JAEGER_PASSWORD`
|
|
||||||
to `OTEL_EXPORTER_JAEGER_ENDPOINT`, `OTEL_EXPORTER_JAEGER_USER`, `OTEL_EXPORTER_JAEGER_PASSWORD`
|
|
||||||
in compliance with OTel spec (#1752)
|
|
||||||
- Span `RecordError` now records an `exception` event to comply with the semantic convention specification. (#1492)
|
- Span `RecordError` now records an `exception` event to comply with the semantic convention specification. (#1492)
|
||||||
- Jaeger exporter was updated to use thrift v0.14.1. (#1712)
|
- Jaeger exporter was updated to use thrift v0.14.1. (#1712)
|
||||||
- Migrate from using internally built and maintained version of the OTLP to the one hosted at `go.opentelemetry.io/proto/otlp`. (#1713)
|
- Migrate from using internally built and maintained version of the OTLP to the one hosted at `go.opentelemetry.io/proto/otlp`. (#1713)
|
||||||
@ -78,28 +83,32 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||||||
- The storage of a local or remote Span in a `context.Context` using its SpanContext is unified to store just the current Span.
|
- The storage of a local or remote Span in a `context.Context` using its SpanContext is unified to store just the current Span.
|
||||||
The Span's SpanContext can now self-identify as being remote or not.
|
The Span's SpanContext can now self-identify as being remote or not.
|
||||||
This means that `"go.opentelemetry.io/otel/trace".ContextWithRemoteSpanContext` will now overwrite any existing current Span, not just existing remote Spans, and make it the current Span in a `context.Context`. (#1731)
|
This means that `"go.opentelemetry.io/otel/trace".ContextWithRemoteSpanContext` will now overwrite any existing current Span, not just existing remote Spans, and make it the current Span in a `context.Context`. (#1731)
|
||||||
|
- Improve OTLP/gRPC exporter connection errors. (#1737)
|
||||||
- Information about a parent span context in a `"go.opentelemetry.io/otel/export/trace".SpanSnapshot` is unified in a new `Parent` field.
|
- Information about a parent span context in a `"go.opentelemetry.io/otel/export/trace".SpanSnapshot` is unified in a new `Parent` field.
|
||||||
The existing `ParentSpanID` and `HasRemoteParent` fields are removed in favor of this. (#1748)
|
The existing `ParentSpanID` and `HasRemoteParent` fields are removed in favor of this. (#1748)
|
||||||
- The `ParentContext` field of the `"go.opentelemetry.io/otel/sdk/trace".SamplingParameters` is updated to hold a `context.Context` containing the parent span.
|
- The `ParentContext` field of the `"go.opentelemetry.io/otel/sdk/trace".SamplingParameters` is updated to hold a `context.Context` containing the parent span.
|
||||||
This changes it to make `SamplingParameters` conform with the OpenTelemetry specification. (#1749)
|
This changes it to make `SamplingParameters` conform with the OpenTelemetry specification. (#1749)
|
||||||
|
- Updated Jaeger Environment Variables: `JAEGER_ENDPOINT`, `JAEGER_USER`, `JAEGER_PASSWORD`
|
||||||
|
to `OTEL_EXPORTER_JAEGER_ENDPOINT`, `OTEL_EXPORTER_JAEGER_USER`, `OTEL_EXPORTER_JAEGER_PASSWORD`
|
||||||
|
in compliance with OTel spec (#1752)
|
||||||
- Modify `BatchSpanProcessor.ForceFlush` to abort after timeout/cancellation. (#1757)
|
- Modify `BatchSpanProcessor.ForceFlush` to abort after timeout/cancellation. (#1757)
|
||||||
- Improve OTLP/gRPC exporter connection errors. (#1737)
|
|
||||||
- The `DroppedAttributeCount` field of the `Span` in the `go.opentelemetry.io/otel` package now only represents the number of attributes dropped for the span itself.
|
- The `DroppedAttributeCount` field of the `Span` in the `go.opentelemetry.io/otel` package now only represents the number of attributes dropped for the span itself.
|
||||||
It no longer is a conglomerate of itself, events, and link attributes that have been dropped. (#1771)
|
It no longer is a conglomerate of itself, events, and link attributes that have been dropped. (#1771)
|
||||||
- Make `ExportSpans` in Jaeger Exporter honor context deadline. (#1773)
|
- Make `ExportSpans` in Jaeger Exporter honor context deadline. (#1773)
|
||||||
|
- Modify Zipkin Exporter default service name, use default resouce's serviceName instead of empty. (#1777)
|
||||||
- The `go.opentelemetry.io/otel/sdk/export/trace` package is merged into the `go.opentelemetry.io/otel/sdk/trace` package. (#1778)
|
- The `go.opentelemetry.io/otel/sdk/export/trace` package is merged into the `go.opentelemetry.io/otel/sdk/trace` package. (#1778)
|
||||||
- The prometheus.InstallNewPipeline example is moved from comment to example test (#1796)
|
- The prometheus.InstallNewPipeline example is moved from comment to example test (#1796)
|
||||||
- The convenience functions for the stdout exporter have been updated to return the `TracerProvider` implementation and enable the shutdown of the exporter. (#1800)
|
- The convenience functions for the stdout exporter have been updated to return the `TracerProvider` implementation and enable the shutdown of the exporter. (#1800)
|
||||||
- Replace the flush function returned from the Jaeger exporter's convenience creation functions (`InstallNewPipeline` and `NewExportPipeline`) with the `TracerProvider` implementation they create.
|
- Replace the flush function returned from the Jaeger exporter's convenience creation functions (`InstallNewPipeline` and `NewExportPipeline`) with the `TracerProvider` implementation they create.
|
||||||
This enables the caller to shutdown and flush using the related `TracerProvider` methods. (#1822)
|
This enables the caller to shutdown and flush using the related `TracerProvider` methods. (#1822)
|
||||||
|
- Updated the Jaeger exporter to have a default enpoint, `http://localhost:14250`, for the collector. (#1824)
|
||||||
|
- Changed the function `WithCollectorEndpoint` in the Jaeger exporter to no longer accept an endpoint as an argument.
|
||||||
|
The endpoint can be passed with the `CollectorEndpointOption` using the `WithEndpoint` function or by setting the `OTEL_EXPORTER_JAEGER_ENDPOINT` environment variable value appropriately. (#1824)
|
||||||
- The Jaeger exporter no longer batches exported spans itself, instead it relies on the SDK's `BatchSpanProcessor` for this functionality. (#1830)
|
- The Jaeger exporter no longer batches exported spans itself, instead it relies on the SDK's `BatchSpanProcessor` for this functionality. (#1830)
|
||||||
- The Jaeger exporter creation functions (`NewRawExporter`, `NewExportPipeline`, and `InstallNewPipeline`) no longer accept the removed `Option` type as a variadic argument. (#1830)
|
- The Jaeger exporter creation functions (`NewRawExporter`, `NewExportPipeline`, and `InstallNewPipeline`) no longer accept the removed `Option` type as a variadic argument. (#1830)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
- Removed the functions `CollectorEndpointFromEnv` and `WithCollectorEndpointOptionFromEnv` from the Jaeger exporter.
|
|
||||||
These functions for retrieving specific environment variable values are redundant of other internal functions and
|
|
||||||
are not intended for end user use. (#1824)
|
|
||||||
- Removed Jaeger Environment variables: `JAEGER_SERVICE_NAME`, `JAEGER_DISABLED`, `JAEGER_TAGS`
|
- Removed Jaeger Environment variables: `JAEGER_SERVICE_NAME`, `JAEGER_DISABLED`, `JAEGER_TAGS`
|
||||||
These environment variables will no longer be used to override values of the Jaeger exporter (#1752)
|
These environment variables will no longer be used to override values of the Jaeger exporter (#1752)
|
||||||
- No longer set the links for a `Span` in `go.opentelemetry.io/otel/sdk/trace` that is configured to be a new root.
|
- No longer set the links for a `Span` in `go.opentelemetry.io/otel/sdk/trace` that is configured to be a new root.
|
||||||
@ -117,6 +126,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||||||
The information that could be configured in the `Process` struct should be configured in a `Resource` instead. (#1776, #1804)
|
The information that could be configured in the `Process` struct should be configured in a `Resource` instead. (#1776, #1804)
|
||||||
- Remove the `WithDisabled` option from the Jaeger exporter.
|
- Remove the `WithDisabled` option from the Jaeger exporter.
|
||||||
To disable the exporter unregister it from the `TracerProvider` or use a no-operation `TracerProvider`. (#1806)
|
To disable the exporter unregister it from the `TracerProvider` or use a no-operation `TracerProvider`. (#1806)
|
||||||
|
- Removed the functions `CollectorEndpointFromEnv` and `WithCollectorEndpointOptionFromEnv` from the Jaeger exporter.
|
||||||
|
These functions for retrieving specific environment variable values are redundant of other internal functions and
|
||||||
|
are not intended for end user use. (#1824)
|
||||||
- Removed the Jaeger exporter `WithSDKOptions` `Option`.
|
- Removed the Jaeger exporter `WithSDKOptions` `Option`.
|
||||||
This option was used to set SDK options for the exporter creation convenience functions.
|
This option was used to set SDK options for the exporter creation convenience functions.
|
||||||
These functions are provided as a way to easily setup or install the exporter with what are deemed reasonable SDK settings for common use cases.
|
These functions are provided as a way to easily setup or install the exporter with what are deemed reasonable SDK settings for common use cases.
|
||||||
@ -1275,7 +1287,8 @@ It contains api and sdk for trace and meter.
|
|||||||
- CODEOWNERS file to track owners of this project.
|
- CODEOWNERS file to track owners of this project.
|
||||||
|
|
||||||
|
|
||||||
[Unreleased]: https://github.com/open-telemetry/opentelemetry-go/compare/v0.19.0...HEAD
|
[Unreleased]: https://github.com/open-telemetry/opentelemetry-go/compare/v0.20.0...HEAD
|
||||||
|
[0.20.0]: https://github.com/open-telemetry/opentelemetry-go/releases/tag/v0.20.0
|
||||||
[0.19.0]: https://github.com/open-telemetry/opentelemetry-go/releases/tag/v0.19.0
|
[0.19.0]: https://github.com/open-telemetry/opentelemetry-go/releases/tag/v0.19.0
|
||||||
[0.18.0]: https://github.com/open-telemetry/opentelemetry-go/releases/tag/v0.18.0
|
[0.18.0]: https://github.com/open-telemetry/opentelemetry-go/releases/tag/v0.18.0
|
||||||
[0.17.0]: https://github.com/open-telemetry/opentelemetry-go/releases/tag/v0.17.0
|
[0.17.0]: https://github.com/open-telemetry/opentelemetry-go/releases/tag/v0.17.0
|
||||||
|
@ -4,12 +4,12 @@ go 1.14
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
go.opencensus.io v0.22.6-0.20201102222123-380f4078db9f
|
go.opencensus.io v0.22.6-0.20201102222123-380f4078db9f
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/metric v0.19.0
|
go.opentelemetry.io/otel/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/oteltest v0.19.0
|
go.opentelemetry.io/otel/oteltest v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk v0.19.0
|
go.opentelemetry.io/otel/sdk v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk/export/metric v0.19.0
|
go.opentelemetry.io/otel/sdk/export/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/trace v0.19.0
|
go.opentelemetry.io/otel/trace v0.20.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel => ../..
|
replace go.opentelemetry.io/otel => ../..
|
||||||
|
@ -6,8 +6,8 @@ replace go.opentelemetry.io/otel => ../..
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/opentracing/opentracing-go v1.2.0
|
github.com/opentracing/opentracing-go v1.2.0
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/trace v0.19.0
|
go.opentelemetry.io/otel/trace v0.20.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel/bridge/opencensus => ../opencensus
|
replace go.opentelemetry.io/otel/bridge/opencensus => ../opencensus
|
||||||
|
@ -9,9 +9,9 @@ replace (
|
|||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/exporters/trace/jaeger v0.19.0
|
go.opentelemetry.io/otel/exporters/trace/jaeger v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk v0.19.0
|
go.opentelemetry.io/otel/sdk v0.20.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel/bridge/opencensus => ../../bridge/opencensus
|
replace go.opentelemetry.io/otel/bridge/opencensus => ../../bridge/opencensus
|
||||||
|
@ -9,10 +9,10 @@ replace (
|
|||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/exporters/stdout v0.19.0
|
go.opentelemetry.io/otel/exporters/stdout v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk v0.19.0
|
go.opentelemetry.io/otel/sdk v0.20.0
|
||||||
go.opentelemetry.io/otel/trace v0.19.0
|
go.opentelemetry.io/otel/trace v0.20.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel/bridge/opencensus => ../../bridge/opencensus
|
replace go.opentelemetry.io/otel/bridge/opencensus => ../../bridge/opencensus
|
||||||
|
@ -11,11 +11,11 @@ replace (
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
go.opencensus.io v0.22.6-0.20201102222123-380f4078db9f
|
go.opencensus.io v0.22.6-0.20201102222123-380f4078db9f
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/bridge/opencensus v0.19.0
|
go.opentelemetry.io/otel/bridge/opencensus v0.20.0
|
||||||
go.opentelemetry.io/otel/exporters/stdout v0.19.0
|
go.opentelemetry.io/otel/exporters/stdout v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk v0.19.0
|
go.opentelemetry.io/otel/sdk v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk/export/metric v0.19.0
|
go.opentelemetry.io/otel/sdk/export/metric v0.20.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel/bridge/opentracing => ../../bridge/opentracing
|
replace go.opentelemetry.io/otel/bridge/opentracing => ../../bridge/opentracing
|
||||||
|
@ -9,12 +9,12 @@ replace (
|
|||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/exporters/otlp v0.19.0
|
go.opentelemetry.io/otel/exporters/otlp v0.20.0
|
||||||
go.opentelemetry.io/otel/metric v0.19.0
|
go.opentelemetry.io/otel/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk v0.19.0
|
go.opentelemetry.io/otel/sdk v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk/metric v0.19.0
|
go.opentelemetry.io/otel/sdk/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/trace v0.19.0
|
go.opentelemetry.io/otel/trace v0.20.0
|
||||||
google.golang.org/grpc v1.37.0
|
google.golang.org/grpc v1.37.0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -10,12 +10,12 @@ replace (
|
|||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/exporters/metric/prometheus v0.19.0
|
go.opentelemetry.io/otel/exporters/metric/prometheus v0.20.0
|
||||||
go.opentelemetry.io/otel/exporters/otlp v0.19.0
|
go.opentelemetry.io/otel/exporters/otlp v0.20.0
|
||||||
go.opentelemetry.io/otel/metric v0.19.0
|
go.opentelemetry.io/otel/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk v0.19.0
|
go.opentelemetry.io/otel/sdk v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk/metric v0.19.0
|
go.opentelemetry.io/otel/sdk/metric v0.20.0
|
||||||
google.golang.org/grpc v1.37.0
|
google.golang.org/grpc v1.37.0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -9,9 +9,9 @@ replace (
|
|||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/exporters/metric/prometheus v0.19.0
|
go.opentelemetry.io/otel/exporters/metric/prometheus v0.20.0
|
||||||
go.opentelemetry.io/otel/metric v0.19.0
|
go.opentelemetry.io/otel/metric v0.20.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel/bridge/opencensus => ../../bridge/opencensus
|
replace go.opentelemetry.io/otel/bridge/opencensus => ../../bridge/opencensus
|
||||||
|
@ -9,10 +9,10 @@ replace (
|
|||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/exporters/trace/zipkin v0.19.0
|
go.opentelemetry.io/otel/exporters/trace/zipkin v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk v0.19.0
|
go.opentelemetry.io/otel/sdk v0.20.0
|
||||||
go.opentelemetry.io/otel/trace v0.19.0
|
go.opentelemetry.io/otel/trace v0.20.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel/bridge/opencensus => ../../bridge/opencensus
|
replace go.opentelemetry.io/otel/bridge/opencensus => ../../bridge/opencensus
|
||||||
|
@ -10,11 +10,11 @@ replace (
|
|||||||
require (
|
require (
|
||||||
github.com/prometheus/client_golang v1.10.0
|
github.com/prometheus/client_golang v1.10.0
|
||||||
github.com/stretchr/testify v1.7.0
|
github.com/stretchr/testify v1.7.0
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/metric v0.19.0
|
go.opentelemetry.io/otel/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk v0.19.0
|
go.opentelemetry.io/otel/sdk v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk/export/metric v0.19.0
|
go.opentelemetry.io/otel/sdk/export/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk/metric v0.19.0
|
go.opentelemetry.io/otel/sdk/metric v0.20.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel/bridge/opencensus => ../../../bridge/opencensus
|
replace go.opentelemetry.io/otel/bridge/opencensus => ../../../bridge/opencensus
|
||||||
|
@ -10,12 +10,12 @@ replace (
|
|||||||
require (
|
require (
|
||||||
github.com/google/go-cmp v0.5.5
|
github.com/google/go-cmp v0.5.5
|
||||||
github.com/stretchr/testify v1.7.0
|
github.com/stretchr/testify v1.7.0
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/metric v0.19.0
|
go.opentelemetry.io/otel/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk v0.19.0
|
go.opentelemetry.io/otel/sdk v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk/export/metric v0.19.0
|
go.opentelemetry.io/otel/sdk/export/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk/metric v0.19.0
|
go.opentelemetry.io/otel/sdk/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/trace v0.19.0
|
go.opentelemetry.io/otel/trace v0.20.0
|
||||||
go.opentelemetry.io/proto/otlp v0.7.0
|
go.opentelemetry.io/proto/otlp v0.7.0
|
||||||
google.golang.org/grpc v1.37.0
|
google.golang.org/grpc v1.37.0
|
||||||
google.golang.org/protobuf v1.26.0
|
google.golang.org/protobuf v1.26.0
|
||||||
|
@ -9,12 +9,12 @@ replace (
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/stretchr/testify v1.7.0
|
github.com/stretchr/testify v1.7.0
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/metric v0.19.0
|
go.opentelemetry.io/otel/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk v0.19.0
|
go.opentelemetry.io/otel/sdk v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk/export/metric v0.19.0
|
go.opentelemetry.io/otel/sdk/export/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk/metric v0.19.0
|
go.opentelemetry.io/otel/sdk/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/trace v0.19.0
|
go.opentelemetry.io/otel/trace v0.20.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel/bridge/opencensus => ../../bridge/opencensus
|
replace go.opentelemetry.io/otel/bridge/opencensus => ../../bridge/opencensus
|
||||||
|
@ -10,9 +10,9 @@ replace (
|
|||||||
require (
|
require (
|
||||||
github.com/google/go-cmp v0.5.5
|
github.com/google/go-cmp v0.5.5
|
||||||
github.com/stretchr/testify v1.7.0
|
github.com/stretchr/testify v1.7.0
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk v0.19.0
|
go.opentelemetry.io/otel/sdk v0.20.0
|
||||||
go.opentelemetry.io/otel/trace v0.19.0
|
go.opentelemetry.io/otel/trace v0.20.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel/bridge/opencensus => ../../../bridge/opencensus
|
replace go.opentelemetry.io/otel/bridge/opencensus => ../../../bridge/opencensus
|
||||||
|
@ -11,9 +11,9 @@ require (
|
|||||||
github.com/google/go-cmp v0.5.5
|
github.com/google/go-cmp v0.5.5
|
||||||
github.com/openzipkin/zipkin-go v0.2.5
|
github.com/openzipkin/zipkin-go v0.2.5
|
||||||
github.com/stretchr/testify v1.7.0
|
github.com/stretchr/testify v1.7.0
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk v0.19.0
|
go.opentelemetry.io/otel/sdk v0.20.0
|
||||||
go.opentelemetry.io/otel/trace v0.19.0
|
go.opentelemetry.io/otel/trace v0.20.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel/bridge/opencensus => ../../../bridge/opencensus
|
replace go.opentelemetry.io/otel/bridge/opencensus => ../../../bridge/opencensus
|
||||||
|
6
go.mod
6
go.mod
@ -5,9 +5,9 @@ go 1.14
|
|||||||
require (
|
require (
|
||||||
github.com/google/go-cmp v0.5.5
|
github.com/google/go-cmp v0.5.5
|
||||||
github.com/stretchr/testify v1.7.0
|
github.com/stretchr/testify v1.7.0
|
||||||
go.opentelemetry.io/otel/metric v0.19.0
|
go.opentelemetry.io/otel/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/oteltest v0.19.0
|
go.opentelemetry.io/otel/oteltest v0.20.0
|
||||||
go.opentelemetry.io/otel/trace v0.19.0
|
go.opentelemetry.io/otel/trace v0.20.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel => ./
|
replace go.opentelemetry.io/otel => ./
|
||||||
|
@ -49,6 +49,6 @@ replace go.opentelemetry.io/otel/trace => ../trace
|
|||||||
require (
|
require (
|
||||||
github.com/google/go-cmp v0.5.5
|
github.com/google/go-cmp v0.5.5
|
||||||
github.com/stretchr/testify v1.7.0
|
github.com/stretchr/testify v1.7.0
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/oteltest v0.19.0
|
go.opentelemetry.io/otel/oteltest v0.20.0
|
||||||
)
|
)
|
||||||
|
@ -47,7 +47,7 @@ replace go.opentelemetry.io/otel/sdk/metric => ../sdk/metric
|
|||||||
replace go.opentelemetry.io/otel/trace => ../trace
|
replace go.opentelemetry.io/otel/trace => ../trace
|
||||||
|
|
||||||
require (
|
require (
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/metric v0.19.0
|
go.opentelemetry.io/otel/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/trace v0.19.0
|
go.opentelemetry.io/otel/trace v0.20.0
|
||||||
)
|
)
|
||||||
|
@ -48,7 +48,7 @@ replace go.opentelemetry.io/otel/trace => ../../../trace
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/stretchr/testify v1.7.0
|
github.com/stretchr/testify v1.7.0
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/metric v0.19.0
|
go.opentelemetry.io/otel/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk v0.19.0
|
go.opentelemetry.io/otel/sdk v0.20.0
|
||||||
)
|
)
|
||||||
|
@ -7,9 +7,9 @@ replace go.opentelemetry.io/otel => ../
|
|||||||
require (
|
require (
|
||||||
github.com/google/go-cmp v0.5.5
|
github.com/google/go-cmp v0.5.5
|
||||||
github.com/stretchr/testify v1.7.0
|
github.com/stretchr/testify v1.7.0
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/oteltest v0.19.0
|
go.opentelemetry.io/otel/oteltest v0.20.0
|
||||||
go.opentelemetry.io/otel/trace v0.19.0
|
go.opentelemetry.io/otel/trace v0.20.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace go.opentelemetry.io/otel/bridge/opencensus => ../bridge/opencensus
|
replace go.opentelemetry.io/otel/bridge/opencensus => ../bridge/opencensus
|
||||||
|
@ -49,8 +49,8 @@ replace go.opentelemetry.io/otel/trace => ../../trace
|
|||||||
require (
|
require (
|
||||||
github.com/benbjohnson/clock v1.0.3 // do not upgrade to v1.1.x because it would require Go >= 1.15
|
github.com/benbjohnson/clock v1.0.3 // do not upgrade to v1.1.x because it would require Go >= 1.15
|
||||||
github.com/stretchr/testify v1.7.0
|
github.com/stretchr/testify v1.7.0
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
go.opentelemetry.io/otel/metric v0.19.0
|
go.opentelemetry.io/otel/metric v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk v0.19.0
|
go.opentelemetry.io/otel/sdk v0.20.0
|
||||||
go.opentelemetry.io/otel/sdk/export/metric v0.19.0
|
go.opentelemetry.io/otel/sdk/export/metric v0.20.0
|
||||||
)
|
)
|
||||||
|
@ -49,5 +49,5 @@ replace go.opentelemetry.io/otel/trace => ./
|
|||||||
require (
|
require (
|
||||||
github.com/google/go-cmp v0.5.5
|
github.com/google/go-cmp v0.5.5
|
||||||
github.com/stretchr/testify v1.7.0
|
github.com/stretchr/testify v1.7.0
|
||||||
go.opentelemetry.io/otel v0.19.0
|
go.opentelemetry.io/otel v0.20.0
|
||||||
)
|
)
|
||||||
|
@ -16,5 +16,5 @@ package otel // import "go.opentelemetry.io/otel"
|
|||||||
|
|
||||||
// Version is the current release version of OpenTelemetry in use.
|
// Version is the current release version of OpenTelemetry in use.
|
||||||
func Version() string {
|
func Version() string {
|
||||||
return "0.19.0"
|
return "0.20.0"
|
||||||
}
|
}
|
||||||
|
34
version_test.go
Normal file
34
version_test.go
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
// Copyright The OpenTelemetry Authors
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
|
package otel_test
|
||||||
|
|
||||||
|
import (
|
||||||
|
"regexp"
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
|
"go.opentelemetry.io/otel"
|
||||||
|
)
|
||||||
|
|
||||||
|
// regex taken from https://github.com/Masterminds/semver/tree/v3.1.1
|
||||||
|
var versionRegex = regexp.MustCompile(`^v?([0-9]+)(\.[0-9]+)?(\.[0-9]+)?` +
|
||||||
|
`(-([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*))?` +
|
||||||
|
`(\+([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*))?$`)
|
||||||
|
|
||||||
|
func TestVersionSemver(t *testing.T) {
|
||||||
|
v := otel.Version()
|
||||||
|
assert.NotNil(t, versionRegex.FindStringSubmatch(v), "version is not semver: %s", v)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user