OpentelemetryTesla (opentelemetry_tesla v1.3.2-rc.3)
OpentelemetryTesla uses telemetry handlers to create OpenTelemetry
spans from Tesla HTTP client events.
Supported events include request start/stop and also when an exception is raised.
Usage
In your application start:
def start(_type, _args) do
OpentelemetryTesla.setup()
children = [
{Phoenix.PubSub, name: MyApp.PubSub},
MyAppWeb.Endpoint
]
opts = [strategy: :one_for_one, name: MyApp.Supervisor]
Supervisor.start_link(children, opts)
end
Link to this section Summary
Functions
Initializes and configures telemetry handlers.
Link to this section Functions
Link to this function
handle_exception(event, measurements, metadata, config)
Link to this function
handle_start(event, measurements, metadata, config)
Link to this function
handle_stop(event, measurements, metadata, config)
Link to this function
setup()
Specs
setup() :: :ok
Initializes and configures telemetry handlers.