NewRelic.Telemetry.Plug (New Relic Elixir Agent v1.25.3) View Source
Plug instrumentation via
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:
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)