bugsnag-symfony icon indicating copy to clipboard operation
bugsnag-symfony copied to clipboard

Support for `auto_capture_sessions`

Open alcohol opened this issue 3 years ago • 1 comments

Description

The Symfony bundle does not seem to provide a way to configure the auto_capture_sessions option. The Laravel integration does provide this.

Describe the solution you'd like

It would be nice if this could be configured through the bundle configuration.

Describe alternatives you've considered

Currently I set this manually after loading the bundle and configuration in our Symfony kernel.

alcohol avatar Mar 21 '22 11:03 alcohol

Hey @alcohol, cheers for the request. Full support for session tracking in Symfony is something that's on our roadmap considered for the future. We'll be sure to let you know about any changes on this front. Your current alternative is the most suitable workaround for now though.

For future travellers, you can use $this->get('bugsnag')->startSession() in Symfony, which is equivalent to a call to $bugsnag->startSession() in the plain PHP notifier, which bugsnag-symfony uses: https://docs.bugsnag.com/platforms/php/other/#session-tracking

xljones avatar Mar 25 '22 14:03 xljones