healthcheck-otel — Optimization
Bound attribute cardinality
Section titled “Bound attribute cardinality”Keep user IDs, request IDs and raw error text out of collector labels. These labels become metric attributes.
Publish custom values through collectors
Section titled “Publish custom values through collectors”Read exported values from report.metrics. Check-local metrics stay in the JSON report.
Separate mapping from delivery
Section titled “Separate mapping from delivery”The package maps an existing report to resource attributes and metric records. It runs in Node.js, Bun, Edge, and browsers.
Avoid sensitive attributes
Section titled “Avoid sensitive attributes”Collector labels become metric attributes. Review their values before exposing records to a monitoring backend.