Skip to content

Mismatching trace information between issue details page and events details page #6616

@lesliewu1

Description

@lesliewu1

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/node

SDK Version

7.28.0

Framework Version

No response

Link to Sentry event

(https://sentry.io/organizations/vontive/issues/3798427835/?environment=prod&project=1297687&query=is%3Aunresolved&referrer=issue-stream)

Steps to Reproduce

We are using Sentry.captureException and sentry tracing to log errors in Sentry. We noticed that under "Issue Details" for a given error event, the trace information seems to be missing / mismatched - specifically, the "Status" field.

To repro:

  1. setup Sentry.captureException and sentry tracing for node
  2. throw a handled error with a certain error code (lets say 403)
  3. view the issue in Sentry, scroll to "Trace Details", notice that "Status" is "unknown" (not 403 / permission_denied)
  4. Click into "Search by Trace" and notice that the correct trace is there, alongside the correct "Transaction Status" (permission_denied)
  5. Click into "View Event", and see the correct Status, Code, and Trace Details on this page

Expected Result

We are expecting to see the "Trace Details" under the "Issue" view and "Event" view to be the same, especially given they share the same trace Id (specifically, we are expecting the same status code)

The details under "Issue", clicking into "Search by Trace", and clicking into "View Event" should match.

If they are not intended to match, my question would then be: what is the "Status" field under "Trace Details" in the Issue page view supposed to represent?

Actual Result

  1. We are seeing "unknown" in the "Status" field in this view

  2. But then, clicking into "Search by Trace" shows the correct status code

  3. Then, clicking into "View Event" also shows the same and correct status code

I am looking for help understanding why 1 does not match with 2 and 3 - whether that is in the way we configure, or something else.

Additionally, it seems a bit odd that this is not a problem when the response code is 2XX like in this example. It only really happens when the response is an error code (4XX or 5XX).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nodeIssues related to the Sentry Node SDKStale
    No fields configured for issues without a type.

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions