Skip to content

Commit d42f443

Browse files
committed
set tag
1 parent 0af3858 commit d42f443

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

packages/replay-internal/src/replay.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
/* eslint-disable max-lines */ // TODO: We might want to split this file up
22
import { EventType, record } from '@sentry-internal/rrweb';
3-
import { SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, getActiveSpan, getClient, getRootSpan, spanToJSON } from '@sentry/core';
3+
import {
4+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
5+
getActiveSpan,
6+
getClient,
7+
getRootSpan,
8+
spanToJSON,
9+
setTag,
10+
} from '@sentry/core';
411
import type { ReplayRecordingMode, Span } from '@sentry/types';
512
import { logger } from './util/logger';
613

@@ -1241,6 +1248,10 @@ export class ReplayContainer implements ReplayContainerInterface {
12411248
// XXX: disregard durations for buffer mode for debug purposes
12421249
if (this.recordingMode !== 'buffer') {
12431250
return;
1251+
} else {
1252+
if (tooShort) {
1253+
setTag(`replay.${tooShort ? 'tooShort' : 'tooLong'}`, true);
1254+
}
12441255
}
12451256
}
12461257

0 commit comments

Comments
 (0)