Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(metrics): Extract user satisfaction as tag [INGEST-589] #1197
feat(metrics): Extract user satisfaction as tag [INGEST-589] #1197
Changes from 7 commits
5228a77
8799136
c3c06cd
d2e8a78
a6d4b06
aa64102
c6d9670
ccbce58
c53f02f
16b678f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Open question: Should a transaction without duration count towards satisfied users?
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.
If we have to choose between satisfied, tolerated, and frustrated, I say yes. However, do we know what cases cause transactions without duration count? If there are cases where SDKs aren't able to measure the duration, we may want to include an additional satisfaction value. I don't know how feasible this is though. If a transaction couldn't be measured, I don't think counting it as satisfaction provides any value. It could take a long time, and having another value could lead to users updating SDK code to correctly capture these transactions and have more valuable data.
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.
We do not have to choose, we can simply leave the metric untagged. So I will leave
None
here. This is an exceptional case anyway, because bothtimestamp
andstart_timestamp
are required fields: https://develop.sentry.dev/sdk/event-payloads/transaction/.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.
Now refactored so that we do an early exit when the transaction is invalid. Metrics for invalid transactions are dropped later on anyway.
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 think transactions of duration 0 should count as satisfied. No transaction shouldn't count towards user satisfaction, that's misleading because we actually don't have data.