@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.
- package/build/cjs/index.js +16 -3
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.js +16 -3
- package/build/esm/index.js.map +1 -1
- package/build/types/utils/parseSpanDescription.d.ts +1 -1
- package/build/types/utils/parseSpanDescription.d.ts.map +1 -1
- package/build/types-ts3.8/utils/parseSpanDescription.d.ts +1 -1
- package/package.json +4 -4
package/build/esm/index.js
CHANGED
|
@@ -266,6 +266,19 @@ function parseSpanDescription(span) {
|
|
|
266
266
|
const attributes = spanHasAttributes(span) ? span.attributes : {};
|
|
267
267
|
const name = spanHasName(span) ? span.name : '<unknown>';
|
|
268
268
|
|
|
269
|
+
// This attribute is intentionally exported as a SEMATTR constant because it should stay intimite API
|
|
270
|
+
if (attributes['sentry.skip_span_data_inference']) {
|
|
271
|
+
return {
|
|
272
|
+
op: undefined,
|
|
273
|
+
description: name,
|
|
274
|
+
source: 'custom',
|
|
275
|
+
data: {
|
|
276
|
+
// Suggest to callers of `parseSpanDescription` to wipe the hint because it is unnecessary data in the end.
|
|
277
|
+
'sentry.skip_span_data_inference': undefined,
|
|
278
|
+
},
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
|
|
269
282
|
// if http.method exists, this is an http request span
|
|
270
283
|
//
|
|
271
284
|
// TODO: Referencing `http.request.method` is a temporary workaround until the semantic
|
|
@@ -616,7 +629,7 @@ class SentryPropagator extends W3CBaggagePropagator {
|
|
|
616
629
|
|
|
617
630
|
const propagationContext = propagationContextFromHeaders(sentryTrace, baggage);
|
|
618
631
|
|
|
619
|
-
// Add remote parent span context
|
|
632
|
+
// Add remote parent span context
|
|
620
633
|
const ctxWithSpanContext = getContextWithRemoteActiveSpan(context, { sentryTrace, baggage });
|
|
621
634
|
|
|
622
635
|
// Also update the scope on the context (to be sure this is picked up everywhere)
|
|
@@ -1250,8 +1263,8 @@ function wrapContextManagerClass(
|
|
|
1250
1263
|
|
|
1251
1264
|
// @ts-expect-error TS does not like this, but we know this is fine
|
|
1252
1265
|
class SentryContextManager extends ContextManagerClass {
|
|
1253
|
-
constructor() {
|
|
1254
|
-
super();
|
|
1266
|
+
constructor(...args) {
|
|
1267
|
+
super(...args);
|
|
1255
1268
|
setIsSetup('SentryContextManager');
|
|
1256
1269
|
}
|
|
1257
1270
|
/**
|