Skip to content

Structured log traces do not correlate with any traces collected #16361

Closed

Description

@bastiankistner

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/bun

SDK Version

9.22.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

see https://github.com/bastiankistner/sentry-logs-issue

(also tried it with cloudflare worker, but same result)

Steps to Reproduce

see https://github.com/bastiankistner/sentry-logs-issue

Expected Result

Links to traces in logs list should open a trace that actually exists.

Actual Result

Traces for logs cannot be found. For issues captured through captureException however, this works as expected.

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on May 22, 2025
  2. chargome commented on May 22, 2025

    @chargome
    Member

    Hey @bastiankistner thanks for the repro! @AbhiPrasad could you take a look at this one?

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on May 22, 2025
  4. self-assigned this
    on May 22, 2025
  5. AbhiPrasad commented on May 23, 2025

    @AbhiPrasad
    Contributor

    Thanks for reporting this @bastiankistner! I've identified what's going wrong here, it's related to how we are accessing the span when capturing logs (we don't select the right active span, so we don't select the right active trace).

    We'll try to get this released early next week. I appreciate the reproductions a lot! If you shoot me an email at aprasad + sentry + .io (remove the spaces) we can try to get you some Sentry swag as reward for your help :)

  6. AbhiPrasad commented on May 23, 2025

    @AbhiPrasad
    Contributor

    Dumping some links to code here so for team meeting on monday for this.

    Check-ins (crons) also have broken tracing 😬.

  7. github-actions commented on May 28, 2025

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #16385, which was included in the 9.23.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions