We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b808fcc commit 4a57c05Copy full SHA for 4a57c05
packages/tracing/src/utils.ts
@@ -160,7 +160,8 @@ type SentryTracestateData = {
160
* @returns the base64-encoded header value
161
*/
162
export function computeTracestateValue(data: SentryTracestateData): string {
163
- // `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
164
+ // `environment` and `release` from being dropped if they haven't been set by `Sentry.init`
165
data.environment = data.environment || null;
166
data.release = data.release || null;
167
0 commit comments