You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't want to log some expected errors from curl
We have some expected errors that we don't want to log to APM e.g timeouts to some urls.
These errors are automatically logged by apm agent during curl_exec and we can't prevent it in later checking of
curl response codes.
To have control of which stuff is logged
Some kind of try/catch logic where we can choose what will be logged and what will be handled with our code without logging to APM Error log.
The text was updated successfully, but these errors were encountered:
To give a good use-case why that is important to us.
We allow our customers to integrate external systems into ours. They see a log on the messages that go out and in and if there is an error they will see that and can react on it. So those errors are expected and part of our business. They are not something we have to be alerted on.
Now, the module for curls sends all timeouts or other errors there. That means everytime we do deployments or want to see how well our application it is, it will be flooded with errors that are not really a problem.
This allows exceptions to be filtered out according to a number of rules and conditions (like equals, contains, etc). It can be by exception, name, message, etc
Here is a sample part of apm-server.yml file:
Don't want to log some expected errors from curl
We have some expected errors that we don't want to log to APM e.g timeouts to some urls.
These errors are automatically logged by apm agent during curl_exec and we can't prevent it in later checking of
curl response codes.
To have control of which stuff is logged
Some kind of try/catch logic where we can choose what will be logged and what will be handled with our code without logging to APM Error log.
The text was updated successfully, but these errors were encountered: