Skip to content

Adding stats to queue spans does not update parent transaction or error rate #88208

@lukemun

Description

@lukemun

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

Context: I am seeing 100% error rate in my lambda producers & consumers when it should be much lower. I am using span.set_status as the docs states. I even see my consumer spans with the correct status in the trace view (ok and internal_error). However, on the queues drawer it says 'unknown' for all 'ok' -> 100% error rate.

From the docs:
Use sentry_sdk.continue_trace() to connect your consumer spans to their associated producer spans, and span.set_status() to mark the trace of your message as success or failed.

Queues Page

I confirmed setting the status on the parent transaction did update the error_rate. Should the span status bubble up to the parent or are the docs incorrect?

Expected Result

Error rate should be set by the span status.

Actual Result

Image

Image

Image

Image

Product Area

Unknown

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions