You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changed signature of the Span RecordError, replace EventOption by ErrorOption (open-telemetry#1677)
* Change signature of the Span `RecordError, replace EventOption by ErrorOption
* Add WithEventOpts, WithErrorStatus
* Set status when WithErrorStatus is passed to RecordError
Signed-off-by: lastchiliarch <lastchiliarch@163.com>
Copy file name to clipboardexpand all lines: CHANGELOG.md
+73-24
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,44 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
10
10
11
11
### Added
12
12
13
+
### Changed
14
+
15
+
- Make `NewSplitDriver` from `go.opentelemetry.io/otel/exporters/otlp` take variadic arguments instead of a `SplitConfig` item.
16
+
`NewSplitDriver` now automically implements an internal `noopDriver` for `SplitConfig` fields that are not initialized. (#1798)
17
+
18
+
### Deprecated
19
+
20
+
### Removed
21
+
22
+
### Fixed
23
+
24
+
### Security
25
+
26
+
## [0.20.0] - 2021-04-23
27
+
28
+
### Added
29
+
30
+
- The OTLP exporter now has two new convenience functions, `NewExportPipeline` and `InstallNewPipeline`, setup and install the exporter in tracing and metrics pipelines. (#1373)
31
+
- Adds semantic conventions for exceptions. (#1492)
These environment variables can be used to override Jaeger agent hostname and port (#1752)
15
-
- The OTLP exporter now has two new convenience functions, `NewExportPipeline` and `InstallNewPipeline`, setup and install the exporter in tracing and metrics pipelines. (#1373)
16
-
- Adds test to check BatchSpanProcessor ignores `OnEnd` and `ForceFlush` post `Shutdown`. (#1772)
17
34
- Option `ExportTimeout` was added to batch span processor. (#1755)
18
-
- Adds semantic conventions for exceptions. (#1492)
35
+
-`trace.TraceFlags` is now a defined type over `byte` and `WithSampled(bool) TraceFlags` and `IsSampled() bool` methods have been added to it. (#1770)
36
+
- 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)
37
+
- The Jaeger exporter now reports dropped attributes for a Span event in the exported log. (#1771)
38
+
- Adds test to check BatchSpanProcessor ignores `OnEnd` and `ForceFlush` post `Shutdown`. (#1772)
39
+
- 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)
40
+
- Added `WithOSType` resource configuration option to set OS (Operating System) type resource attribute (`os.type`). (#1788)
41
+
- Added `WithProcess*` resource configuration options to set Process resource attributes. (#1788)
42
+
-`process.pid`
43
+
-`process.executable.name`
44
+
-`process.executable.path`
45
+
-`process.command_args`
46
+
-`process.owner`
47
+
-`process.runtime.name`
48
+
-`process.runtime.version`
49
+
-`process.runtime.description`
50
+
- Adds `k8s.node.name` and `k8s.node.uid` attribute keys to the `semconv` package. (#1789)
19
51
- Added support for configuring OTLP/HTTP and OTLP/gRPC Endpoints, TLS Certificates, Headers, Compression and Timeout via Environment Variables. (#1758, #1769 and #1811)
20
52
-`OTEL_EXPORTER_OTLP_ENDPOINT`
21
53
-`OTEL_EXPORTER_OTLP_TRACES_ENDPOINT`
@@ -32,10 +64,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
32
64
-`OTEL_EXPORTER_OTLP_CERTIFICATE`
33
65
-`OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE`
34
66
-`OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE`
35
-
-`trace.TraceFlags` is now a defined type over `byte` and `WithSampled(bool) TraceFlags` and `IsSampled() bool` methods have been added to it. (#1770)
36
-
- 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)
37
-
- The Jaeger exporter now reports dropped attributes for a Span event in the exported log. (#1771)
38
-
- Adds `k8s.node.name` and `k8s.node.uid` attribute keys to the `semconv` package. (#1789)
67
+
- Adds `otlpgrpc.WithTimeout` option for configuring timeout to the otlp/gRPC exporter. (#1821)
39
68
40
69
### Fixed
41
70
@@ -46,32 +75,39 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
46
75
Additionally, this tag is overridden, as specified in the OTel specification, if the event contains an attribute with that key. (#1768)
47
76
- Zipkin Exporter: Ensure mapping between OTel and Zipkin span data complies with the specification. (#1688)
48
77
- Fixed typo for default service name in Jaeger Exporter. (#1797)
78
+
- Fix flaky OTLP for the reconnnection of the client connection. (#1527, #1814)
49
79
50
80
### Changed
51
81
52
-
- Modify Zipkin Exporter default service name, use default resouce's serviceName instead of empty. (#1777)
to `OTEL_EXPORTER_JAEGER_ENDPOINT`, `OTEL_EXPORTER_JAEGER_USER`, `OTEL_EXPORTER_JAEGER_PASSWORD`
55
-
in compliance with OTel spec (#1752)
56
82
- Span `RecordError` now records an `exception` event to comply with the semantic convention specification. (#1492)
57
83
- Jaeger exporter was updated to use thrift v0.14.1. (#1712)
58
84
- Migrate from using internally built and maintained version of the OTLP to the one hosted at `go.opentelemetry.io/proto/otlp`. (#1713)
59
85
- Migrate from using `github.com/gogo/protobuf` to `google.golang.org/protobuf` to match `go.opentelemetry.io/proto/otlp`. (#1713)
60
86
- The storage of a local or remote Span in a `context.Context` using its SpanContext is unified to store just the current Span.
61
87
The Span's SpanContext can now self-identify as being remote or not.
62
88
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)
- Information about a parent span context in a `"go.opentelemetry.io/otel/export/trace".SpanSnapshot` is unified in a new `Parent` field.
64
91
The existing `ParentSpanID` and `HasRemoteParent` fields are removed in favor of this. (#1748)
65
92
- The `ParentContext` field of the `"go.opentelemetry.io/otel/sdk/trace".SamplingParameters` is updated to hold a `context.Context` containing the parent span.
66
93
This changes it to make `SamplingParameters` conform with the OpenTelemetry specification. (#1749)
- 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.
70
98
It no longer is a conglomerate of itself, events, and link attributes that have been dropped. (#1771)
71
99
- Make `ExportSpans` in Jaeger Exporter honor context deadline. (#1773)
100
+
- Modify Zipkin Exporter default service name, use default resource's serviceName instead of empty. (#1777)
72
101
- The `go.opentelemetry.io/otel/sdk/export/trace` package is merged into the `go.opentelemetry.io/otel/sdk/trace` package. (#1778)
73
102
- The prometheus.InstallNewPipeline example is moved from comment to example test (#1796)
74
-
- Convenience functions for stdout exporter have been updated to return the `TracerProvider` implementation and enable the shutdown of the exporter. (#1800)
103
+
- The convenience functions for the stdout exporter have been updated to return the `TracerProvider` implementation and enable the shutdown of the exporter. (#1800)
104
+
- Replace the flush function returned from the Jaeger exporter's convenience creation functions (`InstallNewPipeline` and `NewExportPipeline`) with the `TracerProvider` implementation they create.
105
+
This enables the caller to shutdown and flush using the related `TracerProvider` methods. (#1822)
106
+
- Updated the Jaeger exporter to have a default endpoint, `http://localhost:14250`, for the collector. (#1824)
107
+
- Changed the function `WithCollectorEndpoint` in the Jaeger exporter to no longer accept an endpoint as an argument.
108
+
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)
109
+
- The Jaeger exporter no longer batches exported spans itself, instead it relies on the SDK's `BatchSpanProcessor` for this functionality. (#1830)
110
+
- The Jaeger exporter creation functions (`NewRawExporter`, `NewExportPipeline`, and `InstallNewPipeline`) no longer accept the removed `Option` type as a variadic argument. (#1830)
75
111
76
112
### Removed
77
113
@@ -90,6 +126,21 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
90
126
- The `trace.FlagsDebug` and `trace.FlagsDeferred` constants have been removed and will be localized to the B3 propagator. (#1770)
91
127
- Remove `Process` configuration, `WithProcessFromEnv` and `ProcessFromEnv`, and type from the Jaeger exporter package.
92
128
The information that could be configured in the `Process` struct should be configured in a `Resource` instead. (#1776, #1804)
129
+
- Remove the `WithDisabled` option from the Jaeger exporter.
130
+
To disable the exporter unregister it from the `TracerProvider` or use a no-operation `TracerProvider`. (#1806)
131
+
- Removed the functions `CollectorEndpointFromEnv` and `WithCollectorEndpointOptionFromEnv` from the Jaeger exporter.
132
+
These functions for retrieving specific environment variable values are redundant of other internal functions and
133
+
are not intended for end user use. (#1824)
134
+
- Removed the Jaeger exporter `WithSDKOptions``Option`.
135
+
This option was used to set SDK options for the exporter creation convenience functions.
136
+
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.
137
+
If the SDK needs to be configured differently, the `NewRawExporter` function and direct setup of the SDK with the desired settings should be used. (#1825)
138
+
- The `WithBufferMaxCount` and `WithBatchMaxCount``Option`s from the Jaeger exporter are removed.
139
+
The exporter no longer batches exports, instead relying on the SDK's `BatchSpanProcessor` for this functionality. (#1830)
140
+
- The Jaeger exporter `Option` type is removed.
141
+
The type is no longer used by the exporter to configure anything.
142
+
All the previous configurations these options provided were duplicates of SDK configuration.
143
+
They have been removed in favor of using the SDK configuration and focuses the exporter configuration to be only about the endpoints it will send telemetry to. (#1830)
93
144
94
145
## [0.19.0] - 2021-03-18
95
146
@@ -161,7 +212,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
161
212
162
213
### Changed
163
214
164
-
- Changed signature of the Span `RecordError`, replace EventOption by ErrorOption
215
+
- Changed signature of the Span `RecordError`, replace EventOption with ErrorOption. (#1817)
165
216
- Replaced interface `oteltest.SpanRecorder` with its existing implementation
166
217
`StandardSpanRecorder`. (#1542)
167
218
- Default span limit values to 128. (#1535)
@@ -172,7 +223,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
172
223
- Stagger timestamps in exact aggregator tests. (#1569)
173
224
- Changed all examples to use `WithBatchTimeout(5 * time.Second)` rather than `WithBatchTimeout(5)`. (#1621)
174
225
- Prevent end-users from implementing some interfaces (#1575)
175
-
```
226
+
227
+
```
176
228
"otel/exporters/otlp/otlphttp".Option
177
229
"otel/exporters/stdout".Option
178
230
"otel/oteltest".Option
@@ -185,7 +237,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
185
237
"otel/sdk/trace".ParentBasedSamplerOption
186
238
"otel/sdk/trace".ReadOnlySpan
187
239
"otel/sdk/trace".ReadWriteSpan
188
-
```
240
+
```
241
+
189
242
### Removed
190
243
191
244
- Removed attempt to resample spans upon changing the span name with `span.SetName()`. (#1545)
@@ -767,7 +820,7 @@ This release implements the v0.5.0 version of the OpenTelemetry specification.
767
820
- Rename `Observer` instrument to `ValueObserver`. (#734)
768
821
- The push controller now has a method (`Provider()`) to return a `metric.Provider` instead of the old `Meter` method that acted as a `metric.Provider`. (#738)
769
822
- Replace `Measure` instrument by `ValueRecorder` instrument. (#732)
770
-
- Rename correlation context header from `"Correlation-Context"` to `"otcorrelations"` to match the OpenTelemetry specification. 727)
823
+
- Rename correlation context header from `"Correlation-Context"` to `"otcorrelations"` to match the OpenTelemetry specification. (#727)
771
824
772
825
### Fixed
773
826
@@ -870,7 +923,6 @@ This release implements the v0.5.0 version of the OpenTelemetry specification.
870
923
- Create a new recorder rather than reuse when multiple observations in same epoch for asynchronous instruments. #610
871
924
- The default port the OTLP exporter uses to connect to the OpenTelemetry collector is updated to match the one the collector listens on by default. (#611)
872
925
873
-
874
926
## [0.4.2] - 2020-03-31
875
927
876
928
### Fixed
@@ -930,7 +982,7 @@ There is still a possibility of breaking changes.
930
982
- Simplified export setup pipeline for the jaeger exporter to match other exporters. (#459)
931
983
- The zipkin trace exporter. (#495)
932
984
- The OTLP exporter to export metric and trace telemetry to the OpenTelemetry collector. (#497) (#544) (#545)
933
-
-The`StatusMessage` field was add to the trace `Span`. (#524)
985
+
-Add`StatusMessage` field to the trace `Span`. (#524)
934
986
- Context propagation in OpenTracing bridge in terms of OpenTelemetry context propagation. (#525)
935
987
- The `Resource` type was added to the SDK. (#528)
936
988
- The global API now supports a `Tracer` and `Meter` function as shortcuts to getting a global `*Provider` and calling these methods directly. (#538)
@@ -1023,14 +1075,12 @@ There is still a possibility of breaking changes.
1023
1075
-`AlwaysParentSample` sampler to the trace API. (#455)
1024
1076
-`WithNewRoot` option function to the trace API to specify the created span should be considered a root span. (#451)
1025
1077
1026
-
1027
1078
### Changed
1028
1079
1029
1080
- Renamed `WithMap` to `ContextWithMap` in the correlation package. (#481)
1030
1081
- Renamed `FromContext` to `MapFromContext` in the correlation package. (#481)
1031
1082
- Move correlation context propagation to correlation package. (#479)
1032
1083
- Do not default to putting remote span context into links. (#480)
1033
-
- Propagators extrac
1034
1084
-`Tracer.WithSpan` updated to accept `StartOptions`. (#472)
1035
1085
- Renamed `MetricKind` to `Kind` to not stutter in the type usage. (#432)
1036
1086
- Renamed the `export` package to `metric` to match directory structure. (#432)
@@ -1178,7 +1228,6 @@ There is still a possibility of breaking changes.
1178
1228
This allowed distinct label sets through, but any metrics sharing a label set could be overwritten or merged incorrectly.
1179
1229
This was corrected. (#333)
1180
1230
1181
-
1182
1231
## [0.1.2] - 2019-11-18
1183
1232
1184
1233
### Fixed
@@ -1238,8 +1287,8 @@ It contains api and sdk for trace and meter.
1238
1287
- CircleCI build CI manifest files.
1239
1288
- CODEOWNERS file to track owners of this project.
0 commit comments