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
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 */
156156export 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 ;
You can’t perform that action at this time.
0 commit comments