• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

Ruby agent error collector settings

|View as Markdown

Configure the Ruby agent's error collector to customize how errors are captured, which errors to ignore or treat as expected, and how error events are sampled.

Error Collector

The agent collects and reports all uncaught exceptions by default. These configuration options allow you to customize the error collection.

For information on ignored and expected errors, see this page on Error Analytics in APM. To set expected errors via the NewRelic::Agent.notice_error Ruby method, consult the Ruby agent API.

Errors inbox configuration

Setting one of the following environment variables will help you identify which versions of your software produced the errors.

  • NEW_RELIC_METADATA_SERVICE_VERSION creates tags.service.version on event data containing the version of your code that is deployed, in many cases a semantic version such as 1.2.3, but not always.
  • NEW_RELIC_METADATA_RELEASE_TAG creates tags.releaseTag on event data containing the release tag (such as v0.1.209 or release-209).
  • NEW_RELIC_METADATA_COMMIT creates tags.commit on event data containing the commit SHA. The entire SHA can be used or just the first seven characters (e.g., 734713b).

Errors inbox will automatically track which versions of your software are producing errors.

Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.