Skip to content

Commit

Permalink
fix: ignore client errors in nr
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-yarmosh committed Apr 16, 2024
1 parent f2a5adc commit ad85194
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions newrelic.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ exports.config = {
distributed_tracing: {
enabled: true,
},
error_collector: {
ignore_status_codes: [ 400, 401, 403, 404, 405, 422, 429 ],
ignore_classes: [ 'UnprocessableEntityError', 'BadRequestError' ],
ignore_messages: [ 'No suitable probes found', 'Too Many Probes Requested' ],
},
span_events: {
max_samples_stored: 100,
},
Expand Down

0 comments on commit ad85194

Please sign in to comment.