A true alchemist is never done exploring. And neither are we. Sign up for our Elixir Alchemy email series and receive deep insights about Elixir, Phoenix and other developments.
We’ve just released version 1.7 of the AppSignal Elixir integration, which adds support for setting a transaction’s namespace after starting it, drops the cURL dependency for downloading the agent, and bundles its own CA certificate.
AppSignal uses namespaces to differentiate between performance and error samples in different parts of your app. The default namespaces are “web” and “background”, but you can use custom ones when starting a transaction.
Most of our Elixir customers use the Phoenix framework, which automatically starts a transaction per request through our Plug integration. Since 1.7.0, the Elixir integration allows setting the namespace after a transaction is started by using
1 2 3 4 5 6 7 8
defmodule AppsignalPhoenixExampleWeb.AdminController do use AppsignalPhoenixExampleWeb, :controller def index(conn, _params) do Appsignal.Transaction.set_namespace(:admin) render(conn, "index.html") end end
Instead of using HTTPoison for communication with the AppSignal API, and cURL for downloading the agent, we’ve removed both dependencies and are using hackney directly from 1.7.0 onward to fix dependency issues.
Version 1.7.0 of the Elixir integration comes bundled with its own CA certificate to remove the dependency on the ca-certificates package on some machines.