Open
Description
Environment
sentry/sdk 3.3.0 This is a metapackage shipping sentry/sentry with a recommended HTTP client.
sentry/sentry 3.11.0 A PHP SDK for Sentry (http://sentry.io)
sentry/sentry-symfony 4.4.0 Symfony integration for Sentry (http://getsentry.com)
Steps to Reproduce
sentry:
register_error_listener: false
dsn: "%env(file:SENTRY_DSN_FILE)%"
messenger:
enabled: true
capture_soft_fails: false
tracing:
enabled: false
options:
environment: '%env(APP_COHORT)%'
integrations:
- 'Sentry\Integration\IgnoreErrorsIntegration'
services:
Sentry\Monolog\BreadcrumbHandler:
arguments:
- '@Sentry\State\HubInterface'
- !php/const Monolog\Logger::INFO
monolog:
handlers:
sentry_breadcrumbs:
type: service
name: sentry_breadcrumbs
id: Sentry\Monolog\BreadcrumbHandler
sentry:
type: sentry
level: !php/const Monolog\Logger::ERROR
hub_id: Sentry\State\HubInterface
Expected Result
The captured error contains breadcrumbs for the current message.
Actual Result
The captured error contains breadcrumbs for all the messages prior, most of which didn't trigger a Sentry capture.