-
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What version of Elysia is running?
1.4.4
What platform is your computer?
Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
bun create elysia elysia-otel
->bun add @elysiajs/opentelemetry
.- Edit
src/index.ts
like below.
import { Elysia } from "elysia";
import { opentelemetry } from "@elysiajs/opentelemetry";
import { BatchSpanProcessor } from "@opentelemetry/sdk-trace-node";
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-proto";
const app = new Elysia()
.use(opentelemetry({
serviceName: "api",
spanProcessors: [
new BatchSpanProcessor(new OTLPTraceExporter({
url: "https://api.honeycomb.io/v1/traces",
headers: {
"x-honeycomb-team": Bun.env.HONEYCOMB_TOKEN!,
},
})),
],
}))
.get("/health", () => ({ status: "ok" }))
.listen(3000);
console.log(
`🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`
);
bun run dev
- Access
http://localhost:3000/health
from browser (I used Chrome). - Go to dashboard of honeycomb to see sent traces.
- Click any random trace to see the details, and you will notice that no trace has a root span as shown below.

What is the expected behavior?
All trace should have a root span.
What do you see instead?
No trace has a root span.
Additional information
I don't know if it's a bug or just me using it wrong, but I'll open an issue as a bug anyway. I'd be glad if someone could help me. 😢
Have you try removing the node_modules
and bun.lockb
and try again yet?
No response
carlosmfreitas2409, mtt-artis and Serdnad
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working