File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -356,9 +356,17 @@ export class Span implements SpanInterface {
356
356
}
357
357
358
358
/**
359
+ * Collects and adds data to the passed baggage object.
360
+ *
361
+ * Note: This function does not explicitly check if the passed baggage object is allowed
362
+ * to be modified. Implicitly, `setBaggageValue` will not make modification to the object
363
+ * if it was already set immutable.
364
+ *
365
+ * After adding the data, the baggage object is set immutable to prevent further modifications.
359
366
*
360
367
* @param baggage
361
- * @returns
368
+ *
369
+ * @returns modified and immutable maggage object
362
370
*/
363
371
private _getBaggageWithSentryValues ( baggage : Baggage = createBaggage ( { } ) ) : Baggage {
364
372
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
You can’t perform that action at this time.
0 commit comments