Skip to content

Not useable with bun > freeze loading #9547

@approached

Description

@approached

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

import * as Sentry from "@sentry/bun";
import { Elysia, t } from "elysia";
import { auth } from "./lib/firebase_pro";

Sentry.init({
	dsn: process.env.SENTRY_DSN,
	environment: process.env.NODE_ENV,
	release: "1",
	tracesSampleRate: 0.0,
	tracesSampler: () => false,
	sampleRate: 0.0,
	debug: true,
	enableTracing: false,
	autoSessionTracking: false,
	sendClientReports: false,
	// enabled: false,
});

const app = new Elysia({})
	.get("/doc", async () => {
		return await auth.listUsers(2);
	})
	.get("/", () => new Date().toISOString())
	.listen(3001);

console.log(
	`🦊 Elysia is running at http://${app.server?.hostname}:${app.server?.port}/doc`,
);

Expected Result

Userlist from firebase admin sdk.

Actual Result

Loading freeze, no output. Only if disable sentry.

Logs:

Sentry Logger [log]: Integration installed: InboundFilters
Sentry Logger [log]: Integration installed: FunctionToString
Sentry Logger [log]: Integration installed: LinkedErrors
Sentry Logger [log]: Integration installed: Console
Sentry Logger [log]: Integration installed: Http
Sentry Logger [log]: Integration installed: Undici
Sentry Logger [log]: Integration installed: ContextLines
Sentry Logger [log]: Integration installed: Context
Sentry Logger [log]: Integration installed: Modules
Sentry Logger [log]: Integration installed: RequestData
Sentry Logger [log]: Integration installed: BunServer
🦊 Elysia is running at http://localhost:3001/doc
Sentry Logger [log]: [Tracing] Discarding transaction because a negative sampling decision was inherited or tracesSampleRate is set to 0
Sentry Logger [log]: [Tracing] Starting 'http.client' span on transaction 'GET /doc' (ba55c567a3267677).
Sentry Logger [log]: [Tracing] Adding sentry-trace header aa3e5be184744a52b1a42bccc58efff7-ab29aac83a9ffd5d-0 to outgoing request to "https://accounts.google.com:443/o/oauth2/token":
Sentry Logger [log]: [Tracing] Starting 'http.client' span on transaction 'GET /doc' (ba55c567a3267677).
Sentry Logger [log]: [Tracing] Finishing 'http.client' span on transaction 'GET /doc' (ba55c567a3267677).
Sentry Logger [log]: [Tracing] Finishing 'http.client' span on transaction 'GET /doc' (ba55c567a3267677).

How i can disable sentry-trace?

Product Area

Unknown

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: bunIssues related to the Sentry Bun SDK

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions