Skip to content

Commit dd445e0

Browse files
committed
rename parseBaggageSetMutability parameter (sentryTraceData)
1 parent b53be9e commit dd445e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/utils/src/baggage.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,20 +145,20 @@ export function mergeAndSerializeBaggage(incomingBaggage?: Baggage, headerBaggag
145145
* Helper function that takes a raw baggage string (if available) and the processed sentry-trace header
146146
* data (if available), parses the baggage string and creates a Baggage object
147147
* 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
149149
* to prevent mutation of the Sentry data.
150150
*
151151
* Extracted this logic to a function because it's duplicated in a lot of places.
152152
*
153153
* @param rawBaggageString
154-
* @param traceparentData
154+
* @param sentryTraceData
155155
*/
156156
export function parseBaggageSetMutability(
157157
rawBaggageString: string | false | undefined | null,
158-
traceparentData: TraceparentData | string | false | undefined | null,
158+
sentryTraceData: TraceparentData | string | false | undefined | null,
159159
): Baggage {
160160
const baggage = parseBaggageString(rawBaggageString || '');
161-
if (!isSentryBaggageEmpty(baggage) || (traceparentData && isSentryBaggageEmpty(baggage))) {
161+
if (!isSentryBaggageEmpty(baggage) || (sentryTraceData && isSentryBaggageEmpty(baggage))) {
162162
setBaggageImmutable(baggage);
163163
}
164164
return baggage;

0 commit comments

Comments
 (0)