File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -145,20 +145,20 @@ export function mergeAndSerializeBaggage(incomingBaggage?: Baggage, headerBaggag
145
145
* Helper function that takes a raw baggage string (if available) and the processed sentry-trace header
146
146
* data (if available), parses the baggage string and creates a Baggage object
147
147
* If there is no baggage string, it will create an empty Baggage object.
148
- * In a second step, this functions determines when the created Baggage object should be set immutable
148
+ * In a second step, this functions determines if the created Baggage object should be set immutable
149
149
* to prevent mutation of the Sentry data.
150
150
*
151
151
* Extracted this logic to a function because it's duplicated in a lot of places.
152
152
*
153
153
* @param rawBaggageString
154
- * @param traceparentData
154
+ * @param sentryTraceData
155
155
*/
156
156
export function parseBaggageSetMutability (
157
157
rawBaggageString : string | false | undefined | null ,
158
- traceparentData : TraceparentData | string | false | undefined | null ,
158
+ sentryTraceData : TraceparentData | string | false | undefined | null ,
159
159
) : Baggage {
160
160
const baggage = parseBaggageString ( rawBaggageString || '' ) ;
161
- if ( ! isSentryBaggageEmpty ( baggage ) || ( traceparentData && isSentryBaggageEmpty ( baggage ) ) ) {
161
+ if ( ! isSentryBaggageEmpty ( baggage ) || ( sentryTraceData && isSentryBaggageEmpty ( baggage ) ) ) {
162
162
setBaggageImmutable ( baggage ) ;
163
163
}
164
164
return baggage ;
You can’t perform that action at this time.
0 commit comments