OpenTelemetry instrumentation to export metrics (and optionally traces) to Honeycomb for observability.
Tasks
- Add OpenTelemetry JS SDK and OTLP HTTP exporter dependencies.
- Configure metrics exporter to use:
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=https://api.honeycomb.io/v1/metrics
x-honeycomb-team header for API key.
- (Optional) Configure traces exporter to use:
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://api.honeycomb.io/v1/traces
- Add basic metrics (HTTP request count, latency, error count).
- (Optional) Add traces for key user flows.
- Add environment variable documentation to README.
- Test and verify data in Honeycomb.
References
Notes
- Prefer HTTP/Protobuf for compatibility.
- Use environment variables for endpoint and API key.
OpenTelemetry instrumentation to export metrics (and optionally traces) to Honeycomb for observability.
Tasks
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=https://api.honeycomb.io/v1/metricsx-honeycomb-teamheader for API key.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://api.honeycomb.io/v1/tracesReferences
Notes