Documentation
¶
Overview ¶
Package telemetry relays browser OpenTelemetry data to the collector configured through the standard OTEL_* exporter, endpoint, protocol, and header variables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPayloadTooLarge = errors.New("telemetry payload exceeds 512 KiB") ErrInvalidPayload = errors.New("telemetry payload is not OTLP/JSON from arcane-frontend") )
Functions ¶
func Endpoint ¶
Endpoint returns the OTLP/HTTP URL for signal, or "" when its exporter is off, uses gRPC, or has no endpoint configured.
func RegisterRoutes ¶
RegisterRoutes adds an unauthenticated relay route per enabled signal; disabled signals return 404. Routes share a per-IP limit, a global limit, and a cap on concurrent requests.
func SDKDisabled ¶
func SDKDisabled() bool
SDKDisabled reports whether OTEL_SDK_DISABLED turns all telemetry off.
Types ¶
Click to show internal directories.
Click to hide internal directories.