LightCDP.Telemetry.OtelBridge (light_cdp v0.2.1)

Copy Markdown View Source

Bridges LightCDP telemetry events to OpenTelemetry spans.

Uses the Erlang OTel API directly — no opentelemetry_telemetry needed. Connection command spans include the CDP method name for readability (e.g. connection.command DOM.querySelector). Multi-step operations emit span events for internal steps (focus, clear, insert).

# In Application.start/2
LightCDP.Telemetry.OtelBridge.setup()

See the Observability guide for full setup instructions including deps, exporter config, and Jaeger integration.

Summary

Functions

Attaches telemetry handlers that create OpenTelemetry spans.

Computes the OTel span name from a telemetry event and metadata.

Detaches the OpenTelemetry telemetry handlers.

Functions

setup()

Attaches telemetry handlers that create OpenTelemetry spans.

span_name(list, arg2)

Computes the OTel span name from a telemetry event and metadata.

Connection commands include the CDP method for at-a-glance readability:

"connection.command DOM.querySelector"
"connection.command Page.navigate"

Page operations use module.operation:

"page.navigate"
"page.click"

teardown()

Detaches the OpenTelemetry telemetry handlers.