Skip to content

Sentry: Fix Invalid type: session errors - #304

Merged
butschster merged 1 commit into
buggregator:masterfrom
downace:suppress-sentry-session-events-errors
Jan 29, 2026
Merged

butschster merged 1 commit into
buggregator:masterfrom
downace:suppress-sentry-session-events-errors

Conversation

@downace

@downace downace commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Looks like session events are considered valid, though currently not supported:

/**
* TODO handle sentry transaction and session
*/
private function handleEnvelope(Payload $data, EventType $eventType): void
{
match ($data->type()) {
Type::Event => $this->handleEvent($data->getPayload(), $eventType),
default => null,
};
}

match ($payload->type()) {
Type::Event => $this->handleEvent($payload, $event),
// TODO handle sentry transaction and session
// Type::Transaction => ...,
// TODO handle sentry reply recordings
// Type::ReplayRecording => ...,
default => null,
};

So adding another match branch to TypeChunk::type should be enough for now.

Fixes #289

@butschster
butschster merged commit d6cc2fe into buggregator:master Jan 29, 2026
2 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid type error

2 participants