rollbar / rollbar-php-laravel

Rollbar error monitoring integration for Laravel projects
https://docs.rollbar.com/docs/laravel
140 stars 39 forks source link

psr/log conflict #138

Closed quantumwebco closed 1 year ago

quantumwebco commented 2 years ago

This package is not installable in Laravel 9 without downgrading psr/log

I don't want to downgrade

Can rollbar be updated to be compatible with prs/log 3?

danielmorell commented 2 years ago

That would require a new major version release of the rollbar/rollbar package. psr/log v3 is not backward compatible with psr/log v2 and would require not only our code to change but also any project that extends it. Unfortunately, the PR https://github.com/rollbar/rollbar-php/pull/536 that added psr/log v2 was not merged until after rollbar/rollbar v3 was released.

psr/log v3 will be part of rollbar/rolbar v4.

adantart commented 2 years ago

Any update here? So, Laravel 9 projects can't use Rollbar ?

adantart commented 2 years ago

@quantumwebco any other alternative to Rollbar you are considering to move forward (for our Laravel 9 projects) ? ;-) Sentry ? Raygun ? Instabug ?

quantumwebco commented 2 years ago

@danielmorell Thanks for that, do we have any idea when rollbar v4 will be out? I guess for now I'll try a downgrade but it might break other packages that require prs/log v3 so it's not really useable in Laravel 9

adantart commented 2 years ago

@quantumwebco I've just tested Sentry and event it has some things better than Rollbar ... I can not wait for rollbar 4.0 to be released with no expectations :-)

quantumwebco commented 2 years ago

@adantart Sentry is nice but much more expensive and poor support. The free tier is also very restricting. I think rollbar is simpler and easier to use too. I would only use sentry if I was in a very big organisation

danielmorell commented 2 years ago

I don't know of any critical packages in the Laravel ecosystem that are not compatible with psr/log v2, but I might have missed some. We want to be careful to not make too many breaking changes if we can avoid it. But we are also sympathetic to being up to date with the latest versions.

We have a growing backlog of braking changes we need to make at some point. So rollbar/rollbar v4 will probably come sooner than later. I will have to talk to our product team, but we will probably try to set a date for the v4 release or at least a v4 beta.

danielmorell commented 2 years ago

Here is the psr/log v3 issue on the rollbar/rollbar package https://github.com/rollbar/rollbar-php/issues/570.

danielmorell commented 1 year ago

There is now an open PR for this https://github.com/rollbar/rollbar-php/pull/577. It will be released in v4.0.0.

fbingha commented 1 year ago

When is this v4.0.0 release coming out? I am evaluating replacing Bugsnag with Rollbar but this issue is having me considering not looking any further as it is concerning that you would let such a huge blocker fester for so long with Laravel 9. Laravel 9 was released almost a year ago.

danielmorell commented 1 year ago

@fbingha There are a few changes needed but we are hoping to get a beta out by the end of the year.

nielsmouthaan commented 1 year ago

I am also looking forward to 4.0.0 so I can use Rollbar in my Laravel 9 project.

adantart commented 1 year ago

@quantumwebco Totally agree, but I prefer to pay $20 or $40 and have something running in my Laravel 9 (a version that, as @fbingha said, it was released a year ago!), than to have NOTHING and waiting for "who knows when". Even @danielmorell said to have something for end of the (last) year, and we have no news.

It's not about who is better. It's about the information we have here officially. If somebody would say "4.0 will be release 18th of Feb" we can decide which option take... but as far as we know now, Sentry at least has a Laravel 9 working solution.

quantumwebco commented 1 year ago

Well you can do that, no one is stopping you using Sentry or any other service. Personally I just downgraded psr/log to v2, it had no impact, everything works fine and as expected, and will upgrade again when v4 comes out. We're only 13 days in to the new year so I'm not freaking out that the release hasn't happened yet. I am using rollbar on the free tier and this package is open source and @danielmorell works hard on it to keep it maintained for us, so can't complain in the slightest that a non breaking downgrade is necessary to run this in L9. Personally I would ask @danielmorell if there is anything that needs doing and if I can help, happy to do some tasks and put in a PR

adantart commented 1 year ago

Sure @quantumwebco , please don't misunderstand me. He is doing a spectacular job, but the lack of information unfortunately makes us consider other solutions in the short term. In my case, downgrading to psr/log v2 affects to other parts of the project.

danielmorell commented 1 year ago

@adantart I completely understand your frustration. I would probably be frustrated too. So let me see if I can provide an update on where things are at.

There is one minor fix that is written but needs to be validated to ensure it does not cause issues with people using the Fluentd and agent transport methods. This fix is the last of the breaking changes. I should have it done by Monday. At that point it is just the process of getting the whole thing peer reviewed and published.

Also, thank you to you and @quantumwebco for the kind words!

adantart commented 1 year ago

@danielmorell ask for any help if needed

danielmorell commented 1 year ago

@danielmorell ask for any help if needed

Thanks for the offer! This is the last issue I am working on https://github.com/rollbar/rollbar-php/issues/469. I am almost done with it.

Once we have the beta out, we will need to work on a release of the Rollbar Laravel package.

quantumwebco commented 1 year ago

@danielmorell Likewise, just shout if/when there's any outstanding tasks I can help with

danielmorell commented 1 year ago

rollbar/rollbar-php v4.0.0-beta has been released.

nielsmouthaan commented 1 year ago

Thanks, @danielmorell. Rollbar-php-laravel likely also requires an update so it points to 4.0.0? Can you provide any pointers on how I can use rollbar/rollbar-php v4.0.0-beta in my Laravel project without using rollbar-php-laravel so I can test 4.0.0-beta?

adantart commented 1 year ago

Thanks, @danielmorell. Rollbar-php-laravel likely also requires an update so it points to 4.0.0? Can you provide any pointers on how I can use rollbar/rollbar-php v4.0.0-beta in my Laravel project without using rollbar-php-laravel so I can test 4.0.0-beta?

@nielsmouthaan Check this: https://github.com/rollbar/rollbar-php/discussions/597#discussioncomment-4744311

danielmorell commented 1 year ago

This was resolved in #142.