Skip to content

[Metrics] Support cloudflare workers #11220

Closed as not planned
Closed as not planned
@ale-cota

Description

@ale-cota

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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions