Skip to content
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

Add data quality metric to measure traces without a root #3812

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

mapno
Copy link
Member

@mapno mapno commented Jun 26, 2024

What this PR does:

Adds new reason rootless_trace to data quality metric warnings.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@@ -27,3 +28,7 @@ func WarnOutsideIngestionSlack(tenant string) {
func WarnDisconnectedTrace(tenant string, phase string) {
metric.WithLabelValues(tenant, reasonDisconnectedTrace+phase).Inc()
}

func WarnRootlessTrace(tenant string, phase string) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't disconnected_trace_compactor_combine already cover this?

does the generator publish disconnected_trace_flushed_to_wal and _wal_to_complete. that would tell us a lot about the quality of traces produced by the generator

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, rootless traces would be a subset of disconnected traces. Maybe it makes more sense as an extension of that warning?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm good on this PR and will approve, but I am struggling to think what it would mean to a Tempo operator to have the majority of their disconnected traces rootless or rooted. Would they investigate data quality issues differently?

That doesn't mean it doesn't have a use and we might be quite happy we added this at some point in the future.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see it as a particularly bad type of disconnected trace—usually higher in the trace == more important. I think it just adds more information to the operator to investigate.

@mapno mapno merged commit fb4deaf into grafana:main Jun 27, 2024
14 checks passed
@mapno mapno deleted the data-quality-rootless-trace branch June 27, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants