@sentry/opentelemetry 10.61.0 → 10.62.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.
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
3
  const core = require('@sentry/core');
4
- const resource = require('./resource-PpJQa_6P.js');
4
+ const resource = require('./resource-DuZKnQnC.js');
5
5
  require('@opentelemetry/api');
6
6
  require('@sentry/conventions/attributes');
7
7
  require('@opentelemetry/core');
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
- const resource = require('./resource-PpJQa_6P.js');
3
+ const resource = require('./resource-DuZKnQnC.js');
4
4
  const core = require('@sentry/core');
5
5
  const api = require('@opentelemetry/api');
6
6
  const node_async_hooks = require('node:async_hooks');
@@ -1377,7 +1377,7 @@ function backfillStreamedSpanDataFromOtel(spanJSON, hint) {
1377
1377
  if (!attributes) {
1378
1378
  return;
1379
1379
  }
1380
- const kind = hint?.spanKind ?? api.SpanKind.INTERNAL;
1380
+ const kind = hint?.spanKind ?? core.SPAN_KIND.INTERNAL;
1381
1381
  const { op, description, source, data } = inferSpanData(spanJSON.name, attributes, kind);
1382
1382
  spanJSON.name = description;
1383
1383
  core.safeSetSpanJSONAttributes(spanJSON, {
@@ -1385,9 +1385,9 @@ function backfillStreamedSpanDataFromOtel(spanJSON, hint) {
1385
1385
  [core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: source,
1386
1386
  ...data
1387
1387
  });
1388
- if (kind !== api.SpanKind.INTERNAL) {
1388
+ if (kind !== core.SPAN_KIND.INTERNAL) {
1389
1389
  core.safeSetSpanJSONAttributes(spanJSON, {
1390
- "otel.kind": api.SpanKind[kind]
1390
+ "otel.kind": core.spanKindToName(kind)
1391
1391
  });
1392
1392
  }
1393
1393
  }
@@ -1699,4 +1699,4 @@ exports.withActiveSpan = withActiveSpan;
1699
1699
  exports.wrapClientClass = wrapClientClass;
1700
1700
  exports.wrapContextManagerClass = wrapContextManagerClass;
1701
1701
  exports.wrapSamplingDecision = wrapSamplingDecision;
1702
- //# sourceMappingURL=resource-PpJQa_6P.js.map
1702
+ //# sourceMappingURL=resource-DuZKnQnC.js.map