File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ function _addTracingHeadersToFetchRequest(
141141 prevHeaderStrippedFromSentryBaggage ? `${ prevHeaderStrippedFromSentryBaggage } ,${ baggage } ` : baggage ,
142142 ) ;
143143 } else {
144- newHeaders . set ( 'baggage' , sentryBaggageHeader ) ;
144+ newHeaders . set ( 'baggage' , baggage ) ;
145145 }
146146 }
147147
@@ -169,7 +169,7 @@ function _addTracingHeadersToFetchRequest(
169169 if ( baggage ) {
170170 // If there are multiple entries with the same key, the browser will merge the values into a single request header.
171171 // Its therefore safe to simply push a "baggage" entry, even though there might already be another baggage header.
172- newHeaders . push ( [ 'baggage' , sentryBaggageHeader ] ) ;
172+ newHeaders . push ( [ 'baggage' , baggage ] ) ;
173173 }
174174
175175 return newHeaders as PolymorphicRequestHeaders ;
You can’t perform that action at this time.
0 commit comments