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

[Metrics] Support cloudflare workers #11220

Closed
ale-cota opened this issue Mar 21, 2024 · 2 comments
Closed

[Metrics] Support cloudflare workers #11220

ale-cota opened this issue Mar 21, 2024 · 2 comments

Comments

@ale-cota
Copy link

Problem Statement

The different JS functions can't be used in a cloudflare worker environment where I/O is not allowed outside the request, it fails with:

Error: Disallowed operation called within global scope. Asynchronous I/O (ex: fetch() or connect()), setting a timeout, and generating random values are not allowed within global scope. To fix this error, perform this operation within a handler. https://developers.cloudflare.com/workers/runtime-apis/handlers/

Solution Brainstorm

Afraid I don't have any bright ideas here. Here is the original request: getsentry/sentry#64195 (comment)

@Lms24
Copy link
Member

Lms24 commented Mar 21, 2024

This ties in with general CF worker support which we still need to tackle. Tracked in #2484 and more generally in #5611

@AbhiPrasad
Copy link
Member

With the changes to metrics to use span attributes, this is a won't do now.

@AbhiPrasad AbhiPrasad closed this as not planned Won't fix, can't repro, duplicate, stale Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants