Effect CommunityEC
Effect Community5mo ago
25 replies
marbemac

Trouble with Effect's Tracing on Cloudflare Using Wrangler vs. Bun

I've been trying to get Effect's tracing working with Cloudflare but haven't had much luck thus far - wondering if anybody has any insights.

I have a minimal reproduction here: https://github.com/marbemac/cloudflare-sentry-effect-tracing/blob/main/worker/index.ts

Can run it by cloning, running
yarn
, and then:

1. with wrangler: yarn dev
2. with bun: bun run worker/index.ts

For whatever reason when run with wrangler there are no logs from the ConsoleSpanExporter, while the same code works with Bun. I'm not sure, but I have a suspicion that whatever is causing this might be related to why I can't seem to get tracing working in general.

Middle pane is bun, right pane is wrangler.
Was this page helpful?