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

Trace exemplars #3289

Open
kolesnikovae opened this issue May 10, 2024 · 1 comment
Open

Trace exemplars #3289

kolesnikovae opened this issue May 10, 2024 · 1 comment
Labels
enhancement New feature or request type/docs Improvements for doc docs. Used by Docs team for project management ux

Comments

@kolesnikovae
Copy link
Collaborator

We already have an integration with distributed tracing solutions that enables traces to profiles navigation. We should extend the scenario to enable the other way around: profiles to traces.

From the user perspective this could look like trace exemplars in metrics:
image

Given a query expression (series labels + call site filter), we could retrieve top K samples with tracing attribution (by count/sum) and place them in the timeline. The links would include trace_id:span_id pairs, which allows to navigate users straight to the trace span view. In turn, in the trace span view, there would show up a profile for this specific span.

image

This will require a few adjustments of the storage schema and SDKs (we only collect root span_id and span_name as of now).

It's possible that the trace referred by a profile was not sampled by the trace collector (tail sampling). This should be addressed in the collector

@kolesnikovae kolesnikovae added enhancement New feature or request ux labels May 10, 2024
@knylander-grafana
Copy link
Contributor

I like the idea you have in this issue. If we do this, we'll want to add doc to cover concepts and any required configurations.

@knylander-grafana knylander-grafana added the type/docs Improvements for doc docs. Used by Docs team for project management label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request type/docs Improvements for doc docs. Used by Docs team for project management ux
Projects
None yet
Development

No branches or pull requests

2 participants