NewRelic.Telemetry.Plug (New Relic Elixir Agent v1.23.0-rc.1) View Source

Plug based HTTP servers are auto-instrumented based on the telemetry integration built into Plug.Cowboy and Plug.

To prevent reporting the entire transaction:

NewRelic.ignore_transaction()

Inside a Transaction, the agent will track work across processes that are spawned. You can signal to the agent not to track work done inside a 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)

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.