From 7ded7b73797eb41039cb07337d50868802110d82 Mon Sep 17 00:00:00 2001 From: Bastien Caudan Date: Wed, 22 Sep 2021 11:52:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20add=20monitoring=20on=20lite=20p?= =?UTF-8?q?lan=20with=20replay?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/rum-core/src/domain/assembly.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/rum-core/src/domain/assembly.ts b/packages/rum-core/src/domain/assembly.ts index e11d85c3b1..a764b53b85 100644 --- a/packages/rum-core/src/domain/assembly.ts +++ b/packages/rum-core/src/domain/assembly.ts @@ -131,6 +131,18 @@ export function startRumAssembly( }, }) } + if (serverRumEvent.session.has_replay && serverRumEvent._dd.session?.plan === RumSessionPlan.LITE) { + addMonitoringMessage('lite session with replay', { + debug: { + eventType: serverRumEvent.type, + viewId: serverRumEvent.view.id, + sessionId: serverRumEvent.session.id, + replayPlan: session.hasReplayPlan(), + litePlan: session.hasLitePlan(), + docVersion: serverRumEvent._dd.document_version as number | undefined, + }, + }) + } lifeCycle.notify(LifeCycleEventType.RUM_EVENT_COLLECTED, serverRumEvent) } }