Documentation
¶
Overview ¶
Package otlp is the bundled "otlp" telemetry exporter: each tenant's validated metric events feed a tenant-private OTel MeterProvider whose periodic reader ships OTLP/HTTP batches to the endpoint named by the tenant's TELEMETRY_ENDPOINT secret (auth headers from the optional TELEMETRY_HEADERS secret, OTel "k1=v1,k2=v2" format).
Per-tenant providers are cached and re-validated on a TTL: rotating the secrets swaps in a fresh provider (the old one flushes to the old destination on its way out), deleting them turns the tenant off, and a tenant without secrets costs one negative-cache lookup per TTL. All delivery is best-effort — export failures count toward the chassis telemetry.dropped diagnostic and never surface to requests.
Every option that otlpmetrichttp can read from OTEL_EXPORTER_OTLP_* env vars is passed EXPLICITLY here (endpoint, headers), because those env vars configure the chassis's own telemetry on a production node — inheriting them would aim chassis credentials at tenant-controlled destinations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.