From b97057e42fab759f6ea3382001b337a379446c1b Mon Sep 17 00:00:00 2001 From: Sergey Malchits Date: Tue, 20 Jan 2026 14:49:28 +0900 Subject: [PATCH] Sentry: Fix `Invalid type: session` errors Fixes #289 --- app/modules/Sentry/Application/DTO/Type.php | 1 + app/modules/Sentry/Application/DTO/TypeChunk.php | 1 + 2 files changed, 2 insertions(+) diff --git a/app/modules/Sentry/Application/DTO/Type.php b/app/modules/Sentry/Application/DTO/Type.php index 1230eaff..b59d5fea 100644 --- a/app/modules/Sentry/Application/DTO/Type.php +++ b/app/modules/Sentry/Application/DTO/Type.php @@ -8,6 +8,7 @@ enum Type { case Event; case Transaction; + case Session; case ReplyEvent; case ReplayRecording; case Span; diff --git a/app/modules/Sentry/Application/DTO/TypeChunk.php b/app/modules/Sentry/Application/DTO/TypeChunk.php index 7a09fbb6..88af3a48 100644 --- a/app/modules/Sentry/Application/DTO/TypeChunk.php +++ b/app/modules/Sentry/Application/DTO/TypeChunk.php @@ -12,6 +12,7 @@ public function type(): Type 'event' => Type::Event, 'span' => Type::Span, 'transaction' => Type::Transaction, + 'session' => Type::Session, 'replay_event' => Type::ReplyEvent, 'replay_recording' => Type::ReplayRecording, default => throw new \InvalidArgumentException('Invalid type: ' . $this->data['type']),