getsentry / getsentry/sentry-java

Do not report TTFD span with DEADLINE_EXCEEDED status

Open
#4,420 3 comments 0 reactions 0 assignees View on GitHub
Android Feature Spans
Dominant language
Kotlin
Stars
1.4k
Forks
478
Avg merge
2d 23h
Merged PRs (30d)
67

Description

### Problem Statement

Hi!

We started reporting TTFD for one of our screens, and we noticed that the SDK also attaches the TTFD span to all other screens with `DEADLINE_EXCEEDED` status. Since our pricing now depends on span count, it would be better not to attach it to all transactions, because implementing the TTFD reporting for every screen requires additional development.

![Image](https://github.com/user-attachments/assets/1ca48aae-c853-4bca-859f-5b2c7467f733)

I think that we can fix it on our side with a custom `EventProcessor` that will remove such spans, but please consider improving it on the SDK's side.

Thank you!

### Solution Brainstorm

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.