11import type { Span , SpanTimeInput , StartSpanOptions , TransactionContext } from '@sentry/types' ;
22
3+ import type { propagationContextFromHeaders } from '@sentry/utils' ;
34import { dropUndefinedKeys , logger , tracingContextFromHeaders } from '@sentry/utils' ;
45
56import { DEBUG_BUILD } from '../debug-build' ;
@@ -228,16 +229,16 @@ export function continueTrace({
228229 sentryTrace,
229230 baggage,
230231} : {
231- sentryTrace : Parameters < typeof tracingContextFromHeaders > [ 0 ] ;
232- baggage : Parameters < typeof tracingContextFromHeaders > [ 1 ] ;
232+ sentryTrace : Parameters < typeof propagationContextFromHeaders > [ 0 ] ;
233+ baggage : Parameters < typeof propagationContextFromHeaders > [ 1 ] ;
233234} ) : Partial < TransactionContext > ;
234235export function continueTrace < V > (
235236 {
236237 sentryTrace,
237238 baggage,
238239 } : {
239- sentryTrace : Parameters < typeof tracingContextFromHeaders > [ 0 ] ;
240- baggage : Parameters < typeof tracingContextFromHeaders > [ 1 ] ;
240+ sentryTrace : Parameters < typeof propagationContextFromHeaders > [ 0 ] ;
241+ baggage : Parameters < typeof propagationContextFromHeaders > [ 1 ] ;
241242 } ,
242243 callback : ( transactionContext : Partial < TransactionContext > ) => V ,
243244) : V ;
@@ -253,13 +254,23 @@ export function continueTrace<V>(
253254 sentryTrace,
254255 baggage,
255256 } : {
257+ // eslint-disable-next-line deprecation/deprecation
256258 sentryTrace : Parameters < typeof tracingContextFromHeaders > [ 0 ] ;
259+ // eslint-disable-next-line deprecation/deprecation
257260 baggage : Parameters < typeof tracingContextFromHeaders > [ 1 ] ;
258261 } ,
259262 callback ?: ( transactionContext : Partial < TransactionContext > ) => V ,
260263) : V | Partial < TransactionContext > {
264+ // TODO(v8): Change this function so it doesn't do anything besides setting the propagation context on the current scope:
265+ /*
266+ const propagationContext = propagationContextFromHeaders(sentryTrace, baggage);
267+ getCurrentScope().setPropagationContext(propagationContext);
268+ return;
269+ */
270+
261271 const currentScope = getCurrentScope ( ) ;
262272
273+ // eslint-disable-next-line deprecation/deprecation
263274 const { traceparentData, dynamicSamplingContext, propagationContext } = tracingContextFromHeaders (
264275 sentryTrace ,
265276 baggage ,
0 commit comments