Skip to content

Cloudflare Durable Object instrumentDurableObjectWithSentry throwing errors #17094

Description

@danieljvdm

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/cloudflare

SDK Version

9.40.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

export const CallAgent = CallAgentBase;

export const CallAgent = Sentry.instrumentDurableObjectWithSentry(
  () => ({
    dsn: "REDACTED",
    tracesSampleRate: 1.0,
  }),
  CallAgentBase
);

I get no errors with the first line, I get

✘ [ERROR] Uncaught Error: #<Promise> 


✘ [ERROR] Uncaught Error: #<Promise> 


✘ [ERROR] Uncaught Error: #<Promise> 


✘ [ERROR] Uncaught Error: #<Promise> 


✘ [ERROR] Uncaught Error: #<Promise> 

From wrangler with the second line.

Additional context is that this is wrapping a cloudflare agent (which is just a DO)

Expected Result

No errors when using instrumentDurableObjectWithSentry

Actual Result

Uncaught error

Activity

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions