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
@@ -227,14 +226,18 @@ In addition to generally changing the performance APIs, there are also some smal
227
226
228
227
### Changed `SamplingContext` for `tracesSampler()`
229
228
230
-
Currently, `tracesSampler()` can receive an arbitrary `SamplingContext` passed as argument.
231
-
While this is not defined anywhere in detail, the shape of this context will change in v8. Going forward, this will mostly receive the attributes of the span, as well as some other relevant data of the span. Some properties we used to (sometimes) pass there, like `req` for node-based SDKs or `location` for browser tracing, will not be passed anymore.
229
+
Currently, `tracesSampler()` can receive an arbitrary `SamplingContext` passed as argument. While this is not defined
230
+
anywhere in detail, the shape of this context will change in v8. Going forward, this will mostly receive the attributes
231
+
of the span, as well as some other relevant data of the span. Some properties we used to (sometimes) pass there, like
232
+
`req` for node-based SDKs or `location` for browser tracing, will not be passed anymore.
232
233
233
234
### No more `undefined` spans
234
235
235
-
In v7, the performance APIs `startSpan()` / `startInactiveSpan()` / `startSpanManual()` would receive an `undefined` span if tracing was disabled or the span was not sampled.
236
+
In v7, the performance APIs `startSpan()` / `startInactiveSpan()` / `startSpanManual()` would receive an `undefined`
237
+
span if tracing was disabled or the span was not sampled.
236
238
237
-
In v8, aligning with OpenTelemetry, these will _always_ return a span - _but_ the span may eb a Noop-Span, meaning a span that is never sent. This means you don't have to guard everywhere in your code anymore for the span to exist:
239
+
In v8, aligning with OpenTelemetry, these will _always_ return a span - _but_ the span may eb a Noop-Span, meaning a
240
+
span that is never sent. This means you don't have to guard everywhere in your code anymore for the span to exist:
0 commit comments