@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.
- package/build/cjs/index.browser.js +1 -1
- package/build/cjs/index.js +1 -1
- package/build/cjs/{resource-PpJQa_6P.js → resource-DuZKnQnC.js} +4 -4
- package/build/cjs/{resource-PpJQa_6P.js.map → resource-DuZKnQnC.js.map} +1 -1
- package/build/esm/index.browser.js +1 -1
- package/build/esm/index.js +2 -2
- package/build/esm/package.json +1 -1
- package/build/esm/{resource-CB9ITx8O.js → resource-DazDAxCp.js} +5 -5
- package/build/esm/{resource-CB9ITx8O.js.map → resource-DazDAxCp.js.map} +1 -1
- package/build/types/spanProcessor.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -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-
|
|
4
|
+
const resource = require('./resource-DuZKnQnC.js');
|
|
5
5
|
require('@opentelemetry/api');
|
|
6
6
|
require('@sentry/conventions/attributes');
|
|
7
7
|
require('@opentelemetry/core');
|
package/build/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
|
|
3
|
-
const resource = require('./resource-
|
|
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 ??
|
|
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 !==
|
|
1388
|
+
if (kind !== core.SPAN_KIND.INTERNAL) {
|
|
1389
1389
|
core.safeSetSpanJSONAttributes(spanJSON, {
|
|
1390
|
-
"otel.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-
|
|
1702
|
+
//# sourceMappingURL=resource-DuZKnQnC.js.map
|