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
* feat: handle OTEL_TRACES_SAMPLER env var
Adds support for OTEL_TRACES_SAMPLER and OTEL_TRACES_SAMPLER_ARG, in favor of
OTEL_SAMPLING_PROBABILITY.
* fix: feedback in the PR
* refactor: extract OTEL_TRACES_SAMPLER values to enum
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -248,9 +248,11 @@ To request automatic tracing support for a module not on this list, please [file
248
248
### 0.18.x to 0.19.0
249
249
250
250
- All plugins have been removed in favor of instrumentations.
251
-
251
+
252
252
- The `@opentelemetry/propagator-b3` package previously exported three propagators: `B3Propagator`,`B3SinglePropagator`, and `B3MultiPropagator`, but now only exports the `B3Propagator`. It extracts b3 context in single and multi-header encodings, and injects context using the single-header encoding by default, but can be configured to inject context using the multi-header endcoding during construction: `new B3Propagator({ injectEncoding: B3InjectEncoding.MULTI_HEADER })`. If you were previously using the `B3SinglePropagator` or `B3MultiPropagator` directly, you should update your code to use the `B3Propagator` with the appropriate configuration. See the [readme](./packages/opentelemetry-propagator-b3/readme.md) for full details and usage.
253
253
254
+
- Sampling configuration via environment variable has changed. If you were using `OTEL_SAMPLING_PROBABILITY` then you should replace it with `OTEL_TRACES_SAMPLER=parentbased_traceidratio` and `OTEL_TRACES_SAMPLER_ARG=<number>` where `<number>` is a number in the [0..1] range, e.g. "0.25". Default is 1.0 if unset.
255
+
254
256
### 0.17.0 to 0.18.0
255
257
256
258
-`diag.setLogLevel` is removed and LogLevel can be set by an optional second parameter to `setLogger`
Copy file name to clipboardExpand all lines: packages/opentelemetry-tracing/README.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,8 +46,7 @@ span.end();
46
46
47
47
Tracing configuration is a merge of user supplied configuration with both the default
48
48
configuration as specified in [config.ts](./src/config.ts) and an
49
-
environmentally configurable (via `OTEL_SAMPLING_PROBABILITY`) probability
50
-
sampler delegate of a [ParentBased](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/sdk.md#parentbased) sampler.
49
+
environmentally configurable sampling (via `OTEL_TRACES_SAMPLER` and `OTEL_TRACES_SAMPLER_ARG`).
0 commit comments