@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.
@@ -1089,7 +1089,7 @@ function continueTrace(options, callback) {
1089
1089
  }
1090
1090
 
1091
1091
  function getActiveSpanWrapper(parentSpan) {
1092
- return parentSpan
1092
+ return parentSpan !== undefined
1093
1093
  ? (callback) => {
1094
1094
  // We cast this, because the OTEL Span has a few more methods than our Span interface
1095
1095
  // TODO: Add these missing methods to the Span interface
@@ -1791,9 +1791,11 @@ function removeSentryAttributes(data) {
1791
1791
 
1792
1792
  function getData(span) {
1793
1793
  const attributes = span.attributes;
1794
- const data = {
1795
- 'otel.kind': api.SpanKind[span.kind],
1796
- };
1794
+ const data = {};
1795
+
1796
+ if (span.kind !== api.SpanKind.INTERNAL) {
1797
+ data['otel.kind'] = api.SpanKind[span.kind];
1798
+ }
1797
1799
 
1798
1800
  if (attributes[semanticConventions.SEMATTRS_HTTP_STATUS_CODE]) {
1799
1801
  const statusCode = attributes[semanticConventions.SEMATTRS_HTTP_STATUS_CODE] ;