rollbar / rollbar-php-symfony-bundle

Bundle for Symfony that integrates Rollbar tracker
MIT License
28 stars 25 forks source link

Symfony ^6.0 compatibility #76

Closed armetiz closed 2 years ago

armetiz commented 2 years ago

Hi there.

I hope that rollbar will be compatible with Symfony ^6.0.

Regards,

elliotjreed commented 2 years ago

I would second this request! For now it is possible to use the rollbar/rollbar PHP package (composer require rollbar/rollbar) and use Monolog's Rollbar handler.

In your services.yaml you can do

Rollbar\RollbarLogger:
  class: Rollbar\RollbarLogger
  arguments:
    - {
      access_token: '%env(ROLLBAR_ACCESS_TOKEN)%',
      environment: 'production'
    }

Monolog\Handler\RollbarHandler:
  class: Monolog\Handler\RollbarHandler
  arguments:
    $level: 200

Then in your monolog.yaml:

monolog:
  handlers:
    main:
      type: fingers_crossed
      action_level: warning
      handler: rollbar
      excluded_http_codes: [ 405, 404 ]
      buffer_size: 50
    rollbar:
      type: service
      id: Monolog\Handler\RollbarHandler
      channels: [ "!php" ]

https://www.elliotjreed.com/blog/2022-03-14/rollbar-symfony-5-and-6-monolog-handler

art-cg commented 2 years ago

@armetiz Please see related PR https://github.com/rollbar/rollbar-php-symfony-bundle/pull/73

danielmorell commented 2 years ago

We just released v5.0.0-RC1, which supports PHP 8.0-8.1 and Symfony 6. Please test it out and provide and feedback you have. If it works without issue, let us know so we are more confident making a stable release.

apphancer commented 2 years ago

@danielmorell I am using v5.0.0-RC1 and happy with how it's performing with a few of my projects. Looking forward to seeing the stable release.

nielsmouthaan commented 2 years ago

@danielmorell when is v5.0.0 scheduled to be officially released?

danielmorell commented 2 years ago

Hi @nielsmouthaan I am looking at 07/25/22 or 08/01/22.

YaHkO commented 2 years ago

Hi, @danielmorell any news ?

danielmorell commented 2 years ago

Sorry for the delay. We wanted to double check our work, and it took longer than we were hoping. We released v5.0.0 today.