Skip to content

Multiple separate requests are associated with the same trace ID #17101

@punkpeye

Description

@punkpeye

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node - fastify

SDK Version

9.40.0

Framework Version

Fastify 5.4.0

Link to Sentry event

No response

Reproduction Example/SDK Setup

const app = fastify();

setupFastifyErrorHandler(app);

app.get('/test-trace', (request, reply) => {
  reply.send(`${getCurrentScope().getPropagationContext().traceId}`);
});

const address = await app.listen({
  host: '::',
  port: options.port,
});

Steps to Reproduce

  1. Request /test-trace

Expected Result

Expecting to get a different trace ID for every rquest.

Actual Result

$ curl http://127.0.0.1:7410/test-trace
e4dbd740816d4cc98be4d8b901581dff%                                                                                                                                                                                                                                                                   $ curl http://127.0.0.1:7410/test-trace
e4dbd740816d4cc98be4d8b901581dff%

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions