Skip to content

Commit d03fc61

Browse files
chargometimfish
authored andcommitted
fix(tracemetrics): Send boolean for internal replay attribute (#17908)
1 parent e53277e commit d03fc61

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/core/src/metrics/internal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export function _INTERNAL_captureMetric(beforeMetric: Metric, options?: Internal
172172

173173
if (replayId && replay?.getRecordingMode() === 'buffer') {
174174
// We send this so we can identify cases where the replayId is attached but the replay itself might not have been sent to Sentry
175-
setMetricAttribute(processedMetricAttributes, 'sentry._internal.replay_is_buffering', replayId);
175+
setMetricAttribute(processedMetricAttributes, 'sentry._internal.replay_is_buffering', true);
176176
}
177177

178178
const metric: Metric = {

packages/core/test/lib/metrics/internal.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,8 @@ describe('_INTERNAL_captureMetric', () => {
450450
type: 'string',
451451
},
452452
'sentry._internal.replay_is_buffering': {
453-
value: 'buffer-replay-id',
454-
type: 'string',
453+
value: true,
454+
type: 'boolean',
455455
},
456456
});
457457
});
@@ -577,8 +577,8 @@ describe('_INTERNAL_captureMetric', () => {
577577
type: 'string',
578578
},
579579
'sentry._internal.replay_is_buffering': {
580-
value: 'buffer-replay-id',
581-
type: 'string',
580+
value: true,
581+
type: 'boolean',
582582
},
583583
});
584584
});
@@ -736,8 +736,8 @@ describe('_INTERNAL_captureMetric', () => {
736736
type: 'string',
737737
},
738738
'sentry._internal.replay_is_buffering': {
739-
value: 'buffer-replay-id',
740-
type: 'string',
739+
value: true,
740+
type: 'boolean',
741741
},
742742
});
743743
});

0 commit comments

Comments
 (0)