From dabb149c0ae5ce76937c9e0b382564b8bcca7103 Mon Sep 17 00:00:00 2001 From: Martin Sonnberger Date: Tue, 27 Oct 2026 15:53:26 +0100 Subject: [PATCH] refactor(replay-internal): Use convention constants for attribute keys Co-Authored-By: GPT-6 --- packages/replay-internal/src/integration.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/replay-internal/src/integration.ts b/packages/replay-internal/src/integration.ts index 547b2417090e..0576e696383d 100644 --- a/packages/replay-internal/src/integration.ts +++ b/packages/replay-internal/src/integration.ts @@ -1,3 +1,4 @@ +import { SENTRY_REPLAY_ID } from '@sentry/conventions/attributes'; import type { Client, Integration, IntegrationFn, ReplayRecordingMode, StreamedSpanJSON } from '@sentry/core'; import type { BrowserClientReplayOptions } from '@sentry/core/browser'; import { consoleSandbox, GLOBAL_OBJ, isBrowser, parseSampleRate, safeSetSpanJSONAttributes } from '@sentry/core'; @@ -368,7 +369,7 @@ export class Replay implements Integration { public processSpan(span: StreamedSpanJSON): void { const replayId = this.getReplayId(true); if (replayId) { - safeSetSpanJSONAttributes(span, { 'sentry.replay_id': replayId }); + safeSetSpanJSONAttributes(span, { [SENTRY_REPLAY_ID]: replayId }); if (this.getRecordingMode() === 'buffer') { safeSetSpanJSONAttributes(span, { 'sentry._internal.replay_is_buffering': true }); }