@sentry/opentelemetry 8.17.0 → 8.18.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 +6 -4
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.js +6 -4
- package/build/esm/index.js.map +1 -1
- package/package.json +4 -4
package/build/esm/index.js
CHANGED
|
@@ -1086,7 +1086,7 @@ function continueTrace(options, callback) {
|
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
1088
1088
|
function getActiveSpanWrapper(parentSpan) {
|
|
1089
|
-
return parentSpan
|
|
1089
|
+
return parentSpan !== undefined
|
|
1090
1090
|
? (callback) => {
|
|
1091
1091
|
// We cast this, because the OTEL Span has a few more methods than our Span interface
|
|
1092
1092
|
// TODO: Add these missing methods to the Span interface
|
|
@@ -1788,9 +1788,11 @@ function removeSentryAttributes(data) {
|
|
|
1788
1788
|
|
|
1789
1789
|
function getData(span) {
|
|
1790
1790
|
const attributes = span.attributes;
|
|
1791
|
-
const data = {
|
|
1792
|
-
|
|
1793
|
-
|
|
1791
|
+
const data = {};
|
|
1792
|
+
|
|
1793
|
+
if (span.kind !== SpanKind.INTERNAL) {
|
|
1794
|
+
data['otel.kind'] = SpanKind[span.kind];
|
|
1795
|
+
}
|
|
1794
1796
|
|
|
1795
1797
|
if (attributes[SEMATTRS_HTTP_STATUS_CODE]) {
|
|
1796
1798
|
const statusCode = attributes[SEMATTRS_HTTP_STATUS_CODE] ;
|