Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deno.serve terminates due to unexpected error if --unstable-otel is specified #27462

Open
kawmra opened this issue Dec 24, 2024 · 0 comments
Open
Labels
bug Something isn't working correctly otel

Comments

@kawmra
Copy link

kawmra commented Dec 24, 2024

Version: Deno 2.1.4

Reproduction

This reproduction code panics in v2.1.2 and 2.1.3.
It works in 2.1.1.

// main.ts
Deno.serve((_req) => new Response("Hello, world!"));
$ deno run -A --unstable-otel main.ts

Then request to http://localhost:8000, the following error occurs:

Terminating Deno.serve loop due to unexpected error Error: instrumentation scope not available
    at submitSpan (ext:deno_telemetry/telemetry.ts:56:3)
    at endSpan (ext:deno_telemetry/telemetry.ts:170:7)
    at ext:deno_http/00_serve.ts:449:71
    at <anonymous>
    at eventLoopTick (ext:core/01_core.js:175:7)

No env vars are specified.

This doesn't happen if OTEL_EXPORTER_OTLP_PROTOCOL env var is specified (e.g. http/json) but I don't want to enable otel export in local development.

@marvinhagemeister marvinhagemeister added bug Something isn't working correctly otel labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly otel
Projects
None yet
Development

No branches or pull requests

2 participants