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

[BUG]: dd-trace crashes with an undefined symbol error when instrumenting ElysiaJS on Bun #5221

Open
andersfischernielsen opened this issue Feb 6, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@andersfischernielsen
Copy link

andersfischernielsen commented Feb 6, 2025

Tracer Version(s)

5.35.0, 5.23.1, 5.22.0

Node.js Version(s)

--

Bug Report

My Elysia API is crashing after adding import "dd-trace/init"; to the earliest possible point in the implementation.
The error is:

bun: symbol lookup error: /app/node_modules/@datadog/pprof/prebuilds/linuxglibc-x64/node-127.node: undefined symbol: _ZN2v816FunctionTemplate12SetClassNameENS_5LocalINS_6StringEEE

I've tried downgrading the version several times without luck. This error does not occur in other Bun applications, but it crashes consistently when added to an Elysia application.

Is this a known issue? Are there any workarounds?

Reproduction Code

import "dd-trace/init";
import { Elysia } from "elysia";

const app = new Elysia()
  .get("/", () => "Running")
  .listen(3000);
bun run index.ts

Error Logs

bun: symbol lookup error: /app/node_modules/@datadog/pprof/prebuilds/linuxglibc-x64/node-127.node: undefined symbol: _ZN2v816FunctionTemplate12SetClassNameENS_5LocalINS_6StringEEE

Tracer Config

  DD_AGENT_HOST = '...'
  DD_ENV = 'prod'
  DD_LOGS_INJECTION = 'true'
  DD_PROFILING_ENABLED = 'true'
  DD_SERVICE = '...'

Operating System

Debian Linux (via Docker)

Bundling

No Bundling

@andersfischernielsen
Copy link
Author

An issue has also been created in oven-sh/bun here: oven-sh/bun#17113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant