Skip to content

fix: add buffer flusher for sentry handler - #936

Merged
cleptric merged 21 commits into
masterfrom
martinl/buffer-flush
Sep 1, 2025
Merged

fix: add buffer flusher for sentry handler#936
cleptric merged 21 commits into
masterfrom
martinl/buffer-flush

Conversation

@Litarnus

@Litarnus Litarnus commented Aug 7, 2025

Copy link
Copy Markdown
Contributor

This PR introduces a buffer flush handler for the sentry monolog handler, which will make sure that the monolog buffers for sentry are flushed before other sentry services finish.
This makes sure that flushed events get augmented with proper breadcrumbs and request information.

Before the introduction of the Flusher, other listeners would finish a sentry transaction before flushing all buffered events, leading to potential loss of context information from the current scope.

Closes #908 & #763
Fixes: SYMFONY-12

@Litarnus Litarnus self-assigned this Aug 7, 2025
@Litarnus
Litarnus requested a review from cleptric August 11, 2025 08:32
@Litarnus
Litarnus marked this pull request as ready for review August 11, 2025 08:32
cursor[bot]

This comment was marked as outdated.

@Litarnus
Litarnus marked this pull request as draft August 11, 2025 16:15
cursor[bot]

This comment was marked as outdated.

@linear

linear Bot commented Aug 28, 2025

Copy link
Copy Markdown

@cleptric
cleptric merged commit 286b63e into master Sep 1, 2025
40 checks passed
@cleptric
cleptric deleted the martinl/buffer-flush branch September 1, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RequestFetcher doesn't work with Sentry\Monolog\BreadcrumbHandler Console commands are missing breadcrumbs and context with BreadcrumbHandler

2 participants