-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added exception monitoring client #243
Merged
Merged
+3,738
−298
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asgrim
added
enhancement
New feature or request
BC BREAK
This PR contains a BC break; major version should be incremented
labels
Oct 28, 2021
asgrim
force-pushed
the
exception-monitoring-client
branch
9 times, most recently
from
October 29, 2021 12:31
fea537e
to
7cdbea7
Compare
asgrim
force-pushed
the
exception-monitoring-client
branch
7 times, most recently
from
November 11, 2021 15:48
c073c9c
to
d9a025b
Compare
asgrim
force-pushed
the
exception-monitoring-client
branch
7 times, most recently
from
November 23, 2021 11:59
a89acb3
to
676fd85
Compare
…rward-compatibility if batches are added
…rning if error_reporting=true and an HTTP client is not found.
…ut to failure output
…UriReportingConfiguration supports positive-int|0
asgrim
force-pushed
the
exception-monitoring-client
branch
from
January 11, 2022 09:55
270e076
to
000bdce
Compare
BC failures are expected; preparing for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
BC BREAK
This PR contains a BC break; major version should be incremented
enhancement
New feature or request
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dependencies on HTTP client
This adds a dependency on
php-http/discovery
. For this to work, you would already need an HTTP client installed, or install a compatible client.If you receive an error, such as:
You need to resolve the HTTP discovery dependency, because your installed packages do not satisfy the requirement.
For example, if you are on PHP 7.1 and need Guzzle 6,
composer require php-http/guzzle6-adapter nyholm/psr7
will fulfill the dependencies.On PHP 7.2+,
composer require guzzlehttp/guzzle:^7.0
is already compatible.Configuration
By default, error reporting is not enabled at the moment. To enable, you should add
errors_enabled
configuration with a booleantrue
:Laravel 5/6/7
In order to capture errors, in your
\App\Exceptions\Handler::report
function in your application:Laravel 8
In order to capture errors, in your
\App\Exceptions\Handler::register
function in your application:Lumen
In order to capture errors, in your
\App\Exceptions\Handler::report
function in your application:Symfony
Exception listening is provided out the box, so no additional code is needed for Symfony. However, since Symfony already has an HTTP Client out the box, you would need to install something like
composer require php-http/httplug nyholm/psr7
to enable the PSR-18 HTTP Client auto discovery to use it.