Skip to content

Cloudflare: Support Custom Server-to-Server Trace IDs #15296

Closed
@parisholley

Description

@parisholley

Problem Statement

I use Inngest to orchestrate all of my event processing tasks. A feature of their platform is being able to break a single workflow up into multiple "steps", all of which are tagged with a single "run id". For tracing, I would like to keep each "sub step" together inside of a single trace but the library only supports reading trace ids from the header (sentry-trace/baggage).

Solution Brainstorm

Allow for overriding the trace id instead of relying on Sentry.continueTrace(). My current workaround is running this code within my inngest middleware:

Sentry.getActiveSpan()['_traceId'] = v5(ctx.runId, '92f4ea30-d9e0-4750-9d47-69d8c729d79a').replaceAll('-', '');

The only way around this would be to NOT use the out-of-the-box wrappers and roll my own but that means going down an unsupported path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions