Summary:
OpenTelemetry works correctly when running with deno run, but stops working after deno compile.
Details:
We are using Deno’s built-in OpenTelemetry integration (OTEL_DENO=true) in our service.
When running the application with deno run:
Traces are successfully exported via OTLP
Data is visible in Grafana Tempo
No custom OpenTelemetry SDK is used (only Deno’s built-in integration)
However, after compiling the application using deno compile:
The compiled binary runs correctly
HTTP endpoints work as expected
But no traces / logs / metrics are exported to the OpenTelemetry collector
This happens even though all required environment variables are set (OTEL_DENO=true, OTEL_EXPORTEROTLP*, etc.)
The exact same code and configuration works fine with deno run.
The issue only appears after deno compile