Skip to content

[Metrics] Support cloudflare workers #11220

Closed as not planned
Closed as not planned

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)

Activity

  1. Lms24 commented on Mar 21, 2024

    @Lms24
    Member

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

  2. AbhiPrasad commented on Aug 2, 2024

    @AbhiPrasad
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions