Giter Site home page Giter Site logo

theokouzelis / laravel-airbrake Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 24.0 25 KB

Laravel service provider for Airbrake https://github.com/airbrake/phpbrake

License: MIT License

PHP 100.00%
airbrake airbrake-notifier laravel laravel-airbrake php

laravel-airbrake's People

Contributors

mmcdaris avatar naoki85 avatar theokouzelis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

laravel-airbrake's Issues

Is it sending user attributes to Errbit?

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.

unable to install

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

Update `keysBlacklist` option to `keysBlocklist`

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:

'keysBlacklist' => null, #list of keys containing sensitive information that must be filtered out

'keysBlacklist' => null, #list of keys containing sensitive information that must be filtered out

I'd be happy to submit a PR for that if you think that would be helpful.

Issue with Laravel 7 & guzzle

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!

No longer works with Laravel 7.x

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

Include always Request if possible

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.

Can't install on Laravel 6 because of monolog/monolog version.

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.

unauthorized: User not found or access denied.

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.',
)

Lumen support

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.