Skip to content

Deno Panic when using --unstable-otel + hono/client RPC #29045

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

Open
mirairoad opened this issue Apr 25, 2025 · 0 comments
Open

Deno Panic when using --unstable-otel + hono/client RPC #29045

mirairoad opened this issue Apr 25, 2025 · 0 comments
Labels
bug Something isn't working correctly otel panic

Comments

@mirairoad
Copy link

Version: Deno 2.2.11
While migrating from traditional logs to OpenTelemetry, I encountered a panic when using --unstable-otel alongside hono/client for RPC.

🧪 Reproduction steps:
Using this code snippet:

import { hc } from 'hono/client';

export const client = hc<AppType>('http://localhost:1338/');

The app panics when making any request using client.*() if OpenTelemetry is enabled:

deno run --unstable-otel ...

This panic occurs regardless of:
Whether the request comes from an SPA, SSG, or a static pre-compiled client.

Runtime environment (local or deployed).

✅ Temporary fix:
Removing --unstable-otel resolves the issue and the app runs normally.

Let me know if logs or a minimal reproduction repo would help—happy to provide!

Image
@mirairoad mirairoad changed the title Deno Panic when using --unstable-otel + hono/client RPC #panic #bug #deno #otel Deno Panic when using --unstable-otel + hono/client RPC Apr 25, 2025
@bartlomieju bartlomieju added bug Something isn't working correctly panic otel labels Apr 25, 2025
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 panic
Projects
None yet
Development

No branches or pull requests

2 participants