Skip to content

Commit

Permalink
fix(errors inbox): adding anchor links
Browse files Browse the repository at this point in the history
  • Loading branch information
homelessbirds committed Mar 30, 2023
1 parent bc1b7ba commit b9984dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ Error events get grouped into an error group when they share the [same fingerpri

To configure a fingerprint, see the agent-specific documentation:

* [Ruby](/docs/agents/ruby-agent/configuration/ruby-agent-configuration/#error-collector)

* [Ruby](/docs/apm/agents/ruby-agent/api-guides/sending-handled-errors-new-relic/#error-fingerprinting)


## View errors in the UI [#view-errors]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ The `exception` is the exception to be recorded, or an error message. If needed,
</table>


## Error fingerprinting: dynamically apply an error group to each noticed error
## Error fingerprinting: dynamically apply an error group to each noticed error [#error-fingerprinting]

Are your error occurrences grouped poorly? Set your own error fingerprint via a callback function.

A `Proc` based callback can be supplied to the agent to dynamically apply a desired [error group](../../../errors-inbox/errors-inbox) to each noticed error. Use the Ruby agent API [`NewRelic::Agent.set_error_group_callback`](https://www.rubydoc.info/github/newrelic/newrelic-ruby-agent/NewRelic/Agent#set_error_group_callback-instance_method) to provide the agent with a callback.
A `Proc` based callback can be supplied to the agent to dynamically apply a desired [error group](docs/errors-inbox/errors-inbox/#how-groups-work) to each noticed error. Use the Ruby agent API [`NewRelic::Agent.set_error_group_callback`](https://www.rubydoc.info/github/newrelic/newrelic-ruby-agent/NewRelic/Agent#set_error_group_callback-instance_method) to provide the agent with a callback.

This API call takes a callback method (must be of type `Proc`) as its only argument. The argument is required. The API call only needs to be made once per New Relic Ruby agent launch, so the call can be placed in a Rails initializer or similar. If subsequent calls to the API are made, the callback method will update to the newest one provided. Here's an example of a callback being defined and passed to the `NewRelic::Agent.set_error_group_callback` API method:

Expand Down

0 comments on commit b9984dd

Please sign in to comment.