OpentelemetryTesla (opentelemetry_tesla v0.1.0-rc.1)
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
OpenTelemetry.register_application_tracer(:my_telemetry_api)
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
Link to this section Functions
Link to this function
setup()
Specs
setup() :: :ok
Initializes and configures telemetry handlers.