File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/core/src/tracing Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 66 SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE ,
77 SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE ,
88 SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ,
9- SEMANTIC_ATTRIBUTE_SENTRY_SPAN_SOURCE ,
109} from '../semanticAttributes' ;
1110import type { DynamicSamplingContext } from '../types-hoist/envelope' ;
1211import type { Span } from '../types-hoist/span' ;
@@ -120,9 +119,8 @@ export function getDynamicSamplingContextFromSpan(span: Span): Readonly<Partial<
120119 const dsc = getDynamicSamplingContextFromClient ( span . spanContext ( ) . traceId , client ) ;
121120
122121 // We don't want to have a transaction name in the DSC if the source is "url" because URLs might contain PII
123- // TODO(v11): Only read `sentry.span.source` to determine the source
124- const source =
125- rootSpanAttributes [ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] ?? rootSpanAttributes [ SEMANTIC_ATTRIBUTE_SENTRY_SPAN_SOURCE ] ;
122+ // TODO(v11): Only read `SEMANTIC_ATTRIBUTE_SENTRY_SOURCE` again, once we renamed it to `sentry.span.source`
123+ const source = rootSpanAttributes [ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] ?? rootSpanAttributes [ 'sentry.span.source' ] ;
126124
127125 // after JSON conversion, txn.name becomes jsonSpan.description
128126 const name = rootSpanJson . description ;
You can’t perform that action at this time.
0 commit comments