@sentry/opentelemetry 8.15.0 → 8.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -269,6 +269,19 @@ function parseSpanDescription(span) {
269
269
  const attributes = spanHasAttributes(span) ? span.attributes : {};
270
270
  const name = spanHasName(span) ? span.name : '<unknown>';
271
271
 
272
+ // This attribute is intentionally exported as a SEMATTR constant because it should stay intimite API
273
+ if (attributes['sentry.skip_span_data_inference']) {
274
+ return {
275
+ op: undefined,
276
+ description: name,
277
+ source: 'custom',
278
+ data: {
279
+ // Suggest to callers of `parseSpanDescription` to wipe the hint because it is unnecessary data in the end.
280
+ 'sentry.skip_span_data_inference': undefined,
281
+ },
282
+ };
283
+ }
284
+
272
285
  // if http.method exists, this is an http request span
273
286
  //
274
287
  // TODO: Referencing `http.request.method` is a temporary workaround until the semantic
@@ -619,7 +632,7 @@ class SentryPropagator extends core$1.W3CBaggagePropagator {
619
632
 
620
633
  const propagationContext = utils.propagationContextFromHeaders(sentryTrace, baggage);
621
634
 
622
- // Add remote parent span context,
635
+ // Add remote parent span context
623
636
  const ctxWithSpanContext = getContextWithRemoteActiveSpan(context, { sentryTrace, baggage });
624
637
 
625
638
  // Also update the scope on the context (to be sure this is picked up everywhere)
@@ -1253,8 +1266,8 @@ function wrapContextManagerClass(
1253
1266
 
1254
1267
  // @ts-expect-error TS does not like this, but we know this is fine
1255
1268
  class SentryContextManager extends ContextManagerClass {
1256
- constructor() {
1257
- super();
1269
+ constructor(...args) {
1270
+ super(...args);
1258
1271
  setIsSetup('SentryContextManager');
1259
1272
  }
1260
1273
  /**