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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,10 @@ For semantic convention package changes, see the [semconv CHANGELOG](packages/se
120
120
* (user-facing): `ENVIRONMENT` has been removed without replacement
121
121
* (user-facing): `RAW_ENVIRONMENT` has been removed without replacement
122
122
* (user-facing): `parseEnvironment` has been removed without replacement
123
+
* feat(sdk-trace-base): remove `BasicTracerProvider#register()` to improve tree-shaking [#5503](https://github.com/open-telemetry/opentelemetry-js/pull/5503)@pichlermarc
124
+
* (user-facing): `BasicTracerProvider#register()` has been removed
125
+
* to register a global propagator, please use `propagation.setGlobalPropagator()` from `@opentelemetry/api`
126
+
* to register a global context manager, please use `context.setGlobalContextManager()` from `@opentelemetry/api`
123
127
* feat!: set compilation target to ES2022 for all packages except `@opentelemetry/api`, `@opentelemetry/api-logs`, `@opentelemetry/api-events`, and `@opentelemetry/semantic-conventions`[#5456](https://github.com/open-telemetry/opentelemetry-js/pull/5456)@david-luna
124
128
* (user-facing): drops browser runtimes which do not support ES2022 features
Copy file name to clipboardExpand all lines: packages/opentelemetry-sdk-trace-base/README.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,14 @@ The `tracing` module contains the foundation for all tracing SDKs of [openteleme
7
7
8
8
Used standalone, this module provides methods for manual instrumentation of code, offering full control over span creation for client-side JavaScript (browser) and Node.js.
9
9
10
-
It does **not** provide automated instrumentation of known libraries, context propagation for asynchronous invocations or distributed-context out-of-the-box.
10
+
It does **not** provide automated instrumentation of known libraries, context propagation or distributed-context out-of-the-box.
11
11
12
-
For automated instrumentation for Node.js, please see
12
+
For a `TracerProvider` that includes default context management and propagation for Node.js, please see
// Important: requires a context manager and propagator to be registered manually.
37
+
// propagation.setGlobalPropagator(propagator); // replace `propagator` with your `TextMapPropagator`, for example: `W3CTraceContextPropagator` from `@openetelemetry/core`
38
+
// context.setGlobalContextManager(contextManager); // replace `contextManager` with your `ContextManager`: `AsyncLocalStorageContextManager` from `@openetelemetry/async-hooks`
32
39
33
40
// To create a span in a trace, we used the global singleton tracer to start a new span.
0 commit comments