@@ -5,7 +5,6 @@ import { propagation, trace } from '@opentelemetry/api';
5
5
import { W3CBaggagePropagator , isTracingSuppressed } from '@opentelemetry/core' ;
6
6
import { ATTR_URL_FULL , SEMATTRS_HTTP_URL } from '@opentelemetry/semantic-conventions' ;
7
7
import type { continueTrace } from '@sentry/core' ;
8
- import { hasTracingEnabled } from '@sentry/core' ;
9
8
import { getRootSpan } from '@sentry/core' ;
10
9
import { spanToJSON } from '@sentry/core' ;
11
10
import {
@@ -93,8 +92,6 @@ export class SentryPropagator extends W3CBaggagePropagator {
93
92
const activeSpan = trace . getSpan ( context ) ;
94
93
const url = activeSpan && getCurrentURL ( activeSpan ) ;
95
94
96
- console . log ( '1' , { activeSpan, url } ) ;
97
-
98
95
const tracePropagationTargets = getClient ( ) ?. getOptions ( ) ?. tracePropagationTargets ;
99
96
if (
100
97
typeof url === 'string' &&
@@ -106,7 +103,6 @@ export class SentryPropagator extends W3CBaggagePropagator {
106
103
'[Tracing] Not injecting trace data for url because it does not match tracePropagationTargets:' ,
107
104
url ,
108
105
) ;
109
- console . log ( '2' , { tracePropagationTargets } ) ;
110
106
return ;
111
107
}
112
108
@@ -115,7 +111,6 @@ export class SentryPropagator extends W3CBaggagePropagator {
115
111
116
112
const { dynamicSamplingContext, traceId, spanId, sampled } = getInjectionData ( context ) ;
117
113
118
- console . log ( '3' , { existingBaggageHeader, baggage, dynamicSamplingContext, traceId, spanId, sampled } ) ;
119
114
if ( existingBaggageHeader ) {
120
115
const baggageEntries = parseBaggageHeader ( existingBaggageHeader ) ;
121
116
@@ -124,7 +119,6 @@ export class SentryPropagator extends W3CBaggagePropagator {
124
119
baggage = baggage . setEntry ( key , { value } ) ;
125
120
} ) ;
126
121
}
127
- console . log ( '4' , { baggageEntries, baggage } ) ;
128
122
}
129
123
130
124
if ( dynamicSamplingContext ) {
@@ -134,17 +128,14 @@ export class SentryPropagator extends W3CBaggagePropagator {
134
128
}
135
129
return b ;
136
130
} , baggage ) ;
137
- console . log ( '5' , { dynamicSamplingContext, baggage } ) ;
138
131
}
139
132
140
133
// We also want to avoid setting the default OTEL trace ID, if we get that for whatever reason
141
134
if ( traceId && traceId !== INVALID_TRACEID ) {
142
135
setter . set ( carrier , SENTRY_TRACE_HEADER , generateSentryTraceHeader ( traceId , spanId , sampled ) ) ;
143
- console . log ( '6' , { carrier, traceId, spanId, sampled } ) ;
144
136
}
145
137
146
138
super . inject ( propagation . setBaggage ( context , baggage ) , carrier , setter ) ;
147
- console . log ( '7' , { carrier } ) ;
148
139
}
149
140
150
141
/**
0 commit comments