-
-
Notifications
You must be signed in to change notification settings - Fork 224
Add ttid/ttfd contribution flags to span data convention #1250
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -43,6 +43,8 @@ Below describes the conventions for the Span interface for the `data` field on t | |||
| `frames.slow` | int | The number of slow frames rendered during the lifetime of the span. | `2` | | |||
| `frames.frozen` | int | The number of frozen frames rendered during the lifetime of the span. | `1` | | |||
| `frames.delay` | number | The sum of all delayed frame durations in seconds during the lifetime of the span. For more information see <Link to="/sdk/performance/frames-delay/">frames delay</Link>. | `1.3246` | | |||
| `contributes_ttid` | boolean | Whether the span execution contributed to the TTID (time to initial display) metric. | `true` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to preserve data, SDKs should probably only set the flag if it's value is true
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we add a namespace for this? like mobile.contributes_ttid
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I guess ttid
could apply for gaming/browser in the future, could we make it ui.contributes_ttid
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with ui.contributes_ttid
. I think we could start a new category as mobile for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io>
Add
ui.ui.contributes_to_ttid
andui.ui.contributes_to_ttfd
to the span data bag. The SDKs should set those flags on all spans which contribute to ttid / ttfd.I'm still not 100% happy with the naming, if you have something better in mind, feel free to suggest!
Based on previous discussions here: https://www.notion.so/sentry/span-contribution-9b5a0979a81645789db6877593729cf4
Java impl: getsentry/sentry-java#3386
Preview deeplink: https://develop-git-feat-ttidttfdcontributingflags.sentry.dev/sdk/performance/span-data-conventions/#ui