New Relic's Open Source Elixir Agent

VersionBuild StatusLicense

The Open-Source Elixir Agent allows you to monitor your Elixir applications with New Relic. It helps you track transactions, distributed traces and other parts of your application's behavior and provides an overview of underlying BEAM activity.

Support Statement:

New Relic has open-sourced this project to enable monitoring of Elixir applications. This project is provided AS-IS WITHOUT WARRANTY OR SUPPORT, although you can report issues and contribute to the project here on GitHub.

Installation

Requirements:

defp deps do
[
{:new_relic_agent, "~> 1.0"},
]
end

Configuration

You need to set a few required configuration keys so we can authenticate properly.

Via Application config

config :new_relic_agent,
app_name: "My App",
license_key: "license_key"

Via Environment variables

You can also configure these attributes via ENV vars, which helps keep secrets out of source code.

Logging

The agent will log important events. By default they will go to tmp/new_relic.log. You can also configure it to go to STDOUT or any other writable file location:

config :new_relic_agent,
log: "stdout"