Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
clarify comment
  • Loading branch information
lobsterkatie committed Mar 1, 2021
commit 89754e1b654409722215fb4c672ced28d100cdc2
3 changes: 2 additions & 1 deletion packages/tracing/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ type SentryTracestateData = {
* @returns the base64-encoded header value
*/
export function computeTracestateValue(data: SentryTracestateData): string {
// `JSON.stringify` will drop keys with undefined values, but not ones with null values
// `JSON.stringify` will drop keys with undefined values, but not ones with null values, so this prevents
// `environment` and `release` from being dropped if they haven't been set by `Sentry.init`
data.environment = data.environment || null;
data.release = data.release || null;

Expand Down