OpentelemetryPhoenixchannel (Opentelemetry PhoenixChannel v0.1.0)

OpentelemetryPhoenixchannel uses telemetry handlers to create OpenTelemetry spans for Phoenix.Channels.

Current events which are supported include channel join and handle_in events.

Usage

In your application start:

def start(_type, _args) do
  OpentelemetryPhoenixchannel.setup()

  children = [
    {Phoenix.PubSub, name: MyApp.PubSub},
    MyAppWeb.Endpoint
  ]

  opts = [strategy: :one_for_one, name: MyStore.Supervisor]
  Supervisor.start_link(children, opts)
end

Summary

Functions

Initializes and configures the telemetry handlers.

Functions

@spec setup() :: :ok

Initializes and configures the telemetry handlers.