@sentry/opentelemetry 8.30.0 → 8.31.0-beta.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.
@@ -382,6 +382,11 @@ function descriptionForHttpMethod(
382
382
  break;
383
383
  }
384
384
 
385
+ // Spans for HTTP requests we have determined to be prefetch requests will have a `.prefetch` postfix in the op
386
+ if (attributes['sentry.http.prefetch']) {
387
+ opParts.push('prefetch');
388
+ }
389
+
385
390
  const { urlPath, url, query, fragment, hasRoute } = getSanitizedUrl(attributes, kind);
386
391
 
387
392
  if (!urlPath) {
@@ -786,7 +791,7 @@ class SentryPropagator extends core$1.W3CBaggagePropagator {
786
791
  function getInjectionData(context)
787
792
 
788
793
  {
789
- const span = core.hasTracingEnabled() ? api.trace.getSpan(context) : undefined;
794
+ const span = api.trace.getSpan(context);
790
795
  const spanIsRemote = _optionalChain$6([span, 'optionalAccess', _5 => _5.spanContext, 'call', _6 => _6(), 'access', _7 => _7.isRemote]);
791
796
 
792
797
  // If we have a local span, we can just pick everything from it
@@ -1870,6 +1875,7 @@ function removeSentryAttributes(data) {
1870
1875
  /* eslint-disable @typescript-eslint/no-dynamic-delete */
1871
1876
  delete cleanedData[core.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];
1872
1877
  delete cleanedData[SEMANTIC_ATTRIBUTE_SENTRY_PARENT_IS_REMOTE];
1878
+ delete cleanedData['sentry.skip_span_data_inference'];
1873
1879
  /* eslint-enable @typescript-eslint/no-dynamic-delete */
1874
1880
 
1875
1881
  return cleanedData;