OpentelemetryLiveView (Opentelemetry LiveView v1.0.0-rc.2) View Source
OpentelemetryLiveView uses telemetry handlers to create
OpenTelemetry spans for LiveView mount, handle_params, and handle_event. The LiveView
telemetry events that are used are documented here.
Usage
Add in your application start function a call to setup/0:
def start(_type, _args) do
# this register a tracer for your application
OpenTelemetry.register_application_tracer(:my_app)
# this configures the liveview tracing
OpentelemetryLiveView.setup()
children = [
...
]
...
end
Link to this section Summary
Link to this section Functions
Specs
setup() :: :ok
Initializes and configures the telemetry handlers.