Skip to content

Commit

Permalink
Merge pull request #5798 from nr-ahemsath/clarify-custom-error-priority
Browse files Browse the repository at this point in the history
.NET agent: Clarify custom error priority over configured ignored status codes
  • Loading branch information
bradleycamacho committed Jan 25, 2022
2 parents 7b1e8c2 + 5b855b3 commit 457e741
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1926,6 +1926,12 @@ The `errorCollector` element supports the following elements and attributes:
</table>

Lists specific HTTP error codes to not report to New Relic. You can use standard integral HTTP error codes, such as just 401, or you may use Microsoft full status codes with decimal points, such as 401.4 or 403.18. The status codes should be equal to or greater than 400.

<Callout variant="tip">
Custom errors reported with the agent's [`NoticeError()` API](/docs/agents/net-agent/net-agent-api/noticeerror-net-agent) are still reported to New Relic even if the associated transaction has an HTTP status code configured here.
</Callout>


</Collapser>

<Collapser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ If this method is invoked within a [transaction](/docs/accounts-partnerships/edu
For an overview of error configuration in APM, see [Manage errors in APM](/docs/agents/manage-apm-agents/agent-data/manage-errors-apm-collect-ignore-mark-expected).
</Callout>

<Callout variant="tip">
Errors reported with this API are still sent to New Relic when they are reported within a transaction that results in an HTTP status code that is configured to be ignored by agent configuration, e.g. 404.
</Callout>

## Parameters

<table>
Expand Down

0 comments on commit 457e741

Please sign in to comment.