Skip to content

Adds Broadway specific instrumentation on top of the new_relic_agent package.

Notifications You must be signed in to change notification settings

luizmiranda7/new_relic_broadway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New Relic Broadway

Hex.pm Version

This package adds Broadway specific instrumentation on top of the new_relic_agent package. You may use all the built-in capabilities of the New Relic Agent!

Check out the agent for more:

Installation

Install the Hex package

defp deps do
  [
    {:broadway, "~> 1.0.0"},
    {:new_relic_broadway, "~> 0.1"}
  ]
end

Configuration

Instrumentation

  1. Add the Broadway Genserver to your supervisor tree
defmodule MyApp.Application do
  @moduledoc false

  use Application
  def start(_type, args) do

    extra_children = Keyword.get(args, :extra_children, [])

    # List all child processes to be supervised
    children = [
      MyApp.Repo,
      NewRelicBroadway.Telemetry.Broadway,
      {Broadway, Application.get_env(:my_app, Broadway)}
    ]

    # See https://hexdocs.pm/elixir/Supervisor.html
    # for other strategies and supported options
    opts = [strategy: :one_for_one, name: Broker.Supervisor]
    Supervisor.start_link(children ++ extra_children, opts)
  end
end

About

Adds Broadway specific instrumentation on top of the new_relic_agent package.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages