Skip to content

sentry-replay_id= baggage header is not present when trace starts in the backend with SSR app #9756

Closed as not planned
@Fwang36

Description

@Fwang36

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

I tested this in a Laravel, and a Python SSR app, so I'm not sure if this applies to every sdk.

When a trace is started in the backend the baggage headers do not contain a sentry-replay_id=. This causes error events that happen in the backend sdk in the same trace to not be connected to the replay, even though the Trace view shows a full connection.

Steps to reproduce -

  1. Create SSR app
  2. install javascript sdk for the frontend
  3. Follow a Distributed Tracing guide - Python's sentry_sdk.get_baggage() or Laravel's {!! \Sentry\Laravel\Integration::sentryMeta() !!}
  4. Start a trace from the backend to the frontend and check the header's being attached missing the sentry-replay_id=

Error linking seems to work only when the trace is started from the frontend javascript sdk.

baggage of trace started from backend
Screenshot 2023-12-05 at 1 43 12 PM

Example Of replay where the initial trace started from the backend where errors in trace to not appear in Replay

Screenshot 2023-12-05 at 1 46 32 PM

Expected Result

For the replays to be linked to the errors just like we do for transactions and error events

baggage of trace started from frontend
Screenshot 2023-12-05 at 1 42 35 PM

Actual Result

When traces start in the backend, they do not contain a sentry-replay_id in the baggage header

Product Area

Replays

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