Skip to content

Cloudflare Workflows - sentry requires UUID but that removes a benefit of workflows #17074

@StephenHaney

Description

@StephenHaney

Problem Statement

Using Cloudflare Workflows wrapper with Sentry SDK: https://docs.sentry.io/platforms/javascript/guides/cloudflare/features/workflows/

Sentry requires the workflow instance ID to be a random UUID. But part of the point of using Workflows is that if we receive duplicate webhooks, we don't double-write. So in the case of Stripe, for instance, we want to use the Stripe event ID as the workflow instance ID.

Solution Brainstorm

We can probably turn the stripe event ID into a UUID in a deterministic and non-colliding way, but then our workflows are no longer easy to trace back to the stripe event that caused them (or searchable in the CF dashboard, etc)

Ideally we could use Stripe's event ID to set the already unique-requierd workflow ID rather than needing to convert it to a UUID for Sentry.

Appreciate everyone who looks into this! 🙏

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions