deno
2c4f99e0 - fix(otel): add timeout to OTEL HTTP exporter to prevent hangs (#33159)

Commit
196 days ago
fix(otel): add timeout to OTEL HTTP exporter to prevent hangs (#33159) ## Summary - Fixes #33157 — `deno run` with `OTEL_DENO=true` hangs indefinitely when no OTEL collector is running - The OTEL HTTP exporter had no timeout on requests, so during shutdown it would block forever trying to connect to `localhost:4317` - Adds a `tokio::time::timeout` wrapper around all HTTP export requests - Defaults to 10 seconds per the [OpenTelemetry spec](https://opentelemetry.io/docs/specs/otel/protocol/exporter/#configuration-options) - Supports `OTEL_EXPORTER_OTLP_TIMEOUT` env var (value in milliseconds) --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Parents
Loading