theokouzelis / laravel-airbrake Goto Github PK
View Code? Open in Web Editor NEWLaravel service provider for Airbrake https://github.com/airbrake/phpbrake
License: MIT License
Laravel service provider for Airbrake https://github.com/airbrake/phpbrake
License: MIT License
I integrated this package with Laravel 6.6.0 and now can track errors on Errbit, thank you.
But on Errbit I can't see User details. All Laravel routes are api routes so I use api auth.
I wonder if this package sends current logged in user details with exception or not. If sends, is my problem based on api auth? I checked controller method where I created an error, I can access logged in user detail with auth()->user() but it is not included in HTTP request parameters where laravel-airbrake sent to Errbit server.
Pls provide laravel 8 support.
I'm unable to install the package, getting this error message:
`Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for kouz/laravel-airbrake ^0.2.0 -> satisfiable by kouz/laravel-airbrake[0.2].
- kouz/laravel-airbrake 0.2 requires airbrake/phpbrake ^0.0.12 -> satisfiable by airbrake/phpbrake[v0.0.12] but these conflict with your requirements or minimum-stability.
`
please guide,
Thanks
Howdy!
We recently updated the phpbrake library to use updated terminology for the filtering option. keysBlacklist
is still supported but is deprecated in favor of keysBlocklist
. Users that set keysBlacklist
will see a message like this in their log though it will still work at filtering params:
phpbrake: keysBlacklist is a deprecated option. Use keysBlocklist instead.
I've done some testing myself (full disclosure: Laravel novice) with this library in an example Laravel app and I think simply updating these two mentions to keysBlocklist
would do the trick:
laravel-airbrake/config/airbrake.php
Line 15 in e6adcae
Line 40 in da1e947
I'd be happy to submit a PR for that if you think that would be helpful.
if ($this->shouldReport($throwable)) {
$airbrakeNotifier = App::make('Airbrake\Notifier');
$airbrakeNotifier->notify($throwable);
}
I've installed this several times with no issue, but this one is being a pain:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: guzzlehttp/guzzle[7.0.1, 6.5.x-dev].
- Can only install one of: guzzlehttp/guzzle[6.5.x-dev, 7.0.1].
- Can only install one of: guzzlehttp/guzzle[6.5.x-dev, 7.0.1].
- airbrake/phpbrake v0.7.3 requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- kouz/laravel-airbrake 0.6.0 requires airbrake/phpbrake ^0.7.3 -> satisfiable by airbrake/phpbrake[v0.7.3].
- Installation request for kouz/laravel-airbrake ^0.6.0 -> satisfiable by kouz/laravel-airbrake[0.6.0].
- Installation request for guzzlehttp/guzzle (locked at 7.0.1, required as ^7.0) -> satisfiable by guzzlehttp/guzzle[7.0.1].
Installation failed, reverting ./composer.json to its original content.
So far have tried
composer update
- no success
Tried removing the composer.lock and vendor folder, no success there either.
Any ideas? Much thanks!
After updating to 7.x, composer says there's a conflict
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove kouz/laravel-airbrake 0.5.0
- Conclusion: don't install laravel/framework v7.1.3
Hi, I've come across a scenario where host needs passing into the config.
This is supported in later version of phpbrake but not with the current composer requirements, are you happy for me to submit a PR request?
Is it possible to include the whole request? Sometimes I can't reproduce the error and it would help me a lot if I can pass the request as Object/Array.
When I try to install package on a Laravel 6 project, composer couldn't complete installation because of monolog/monolog version.
Since version 6, Laravel requires "monolog/monolog": "^1.12|^2.0",
and this package requires "monolog/monolog": "^1.22"
so when I tried to install this, it gives an error like this;
Using version ^0.5.0 for kouz/laravel-airbrake
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for kouz/laravel-airbrake ^0.5.0 -> satisfiable by kouz/laravel-airbrake[0.5.0].
- Conclusion: remove monolog/monolog 2.0.1
- Conclusion: don't install monolog/monolog 2.0.1
- kouz/laravel-airbrake 0.5.0 requires monolog/monolog ^1.22 -> satisfiable by monolog/monolog[1.22.0, 1.22.1, 1.23.0, 1.24.0, 1.25.0, 1.25.1, 1.25.2, 1.x-dev].
- Can only install one of: monolog/monolog[1.22.0, 2.0.1].
- Can only install one of: monolog/monolog[1.22.1, 2.0.1].
- Can only install one of: monolog/monolog[1.23.0, 2.0.1].
- Can only install one of: monolog/monolog[1.24.0, 2.0.1].
- Can only install one of: monolog/monolog[1.25.0, 2.0.1].
- Can only install one of: monolog/monolog[1.25.1, 2.0.1].
- Can only install one of: monolog/monolog[1.25.2, 2.0.1].
- Can only install one of: monolog/monolog[1.x-dev, 2.0.1].
- Installation request for monolog/monolog (locked at 2.0.1) -> satisfiable by monolog/monolog[2.0.1].
Installation failed, reverting ./composer.json to its original content.
My Handler.php
public function report(Exception $e)
{
// For airbrake exception handling
$airbrakeNotifier = \App::make('Airbrake\Notifier');
$return = $airbrakeNotifier->notify($e);
Log::debug($return);
// Normal Exception reporting
parent::report($e);
}
The "return"
[2017-04-25 15:49:41] local.DEBUG: array (
'error' => 'unauthorized: User not found or access denied.',
)
Hi,
We're currently evaluation application monitoring providers, and have narrowed the decision down to Rollbar and Airbrake. Any experience integrating your package with Lumen? Similar solutions for Rollbar don't work with Lumen due to service provider conflicts. Of course, we can manually integrate either using the respective service's PHP package; just looking for the most seamless solution. Thanks! -Jason
Hello Guys,
how can i report only online Errors in Production mode?
On executing composer update
Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover
In Container.php line 1057:
Unresolvable dependency resolving [Parameter #0 [ $opt ]] in class Airbrake\Notifier
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.