View Source NewRelic.Telemetry.Plug (New Relic Elixir Agent v1.29.0)

Provides Plug instrumentation via telemetry.

Plug pipelines are auto-discovered and instrumented.

We automatically gather:

  • Transaction metrics and events
  • Transaction Traces
  • Distributed Traces

You can opt-out of this instrumentation via configuration. See NewRelic.Config for details.


To prevent reporting an individual transaction:

NewRelic.ignore_transaction()

Inside a Transaction, the agent will track work across processes that are spawned and linked. You can signal to the agent not to track work done inside a spawned process, which will exclude it from the current Transaction.

To exclude a process from the Transaction:

Task.async(fn ->
  NewRelic.exclude_from_transaction()
  Work.wont_be_tracked()
end)

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.