-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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 to logs: Add service name and namespace to default tags #71776
Conversation
Backend code coverage report for PR #71776 |
Frontend code coverage report for PR #71776
|
I'm not clear on the role of these tags but would it be relevant to also add By the way, shall we update the documentation https://grafana.com/docs/grafana/next/datasources/tempo/#trace-to-logs as it is listing those default tags? |
This looks good overall, thanks for creating the PR. This will render the Also, I would replace line 152 in createSpanLink with the following ![]() ![]() |
Ohh yes also we should update the default tags referenced in the docs and the tooltip in the configuration page to match exactly with the default tags we've added in our code. |
Thanks @joey-grafana . View related logs is a great feature. @connorlindsey I think we will benefit of |
@joey-grafana Thanks for the feedback. We may actually have to use a custom query for the plugin, so setting the default tags may not work (although this could still be a valid improvement for Explore). If that's the case, we'll handle it by transforming the dataframes in the plugin, but I'll still finish this PR. |
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.
Looks good, apart from one suggestion.. thank you for the updates :)
@connorlindsey just updated the milestone :) |
* Add service name and namespace to default trace to logs tags * Add deployment.environment. Update docs * Revert metrics query tags type
…a#71776) * Add service name and namespace to default trace to logs tags * Add deployment.environment. Update docs * Revert metrics query tags type
What is this feature?
Updates the default trace to logs tags to include
service.name
,service.namespace
, anddeployment.environment
, which are from the OpenTelemetry standard conventions.Why do we need this feature?
Makes trace to logs work for services instrumented with OTel
Who is this feature for?
OTel users
Which issue(s) does this PR fix?:
Fixes #71767
Special notes for your reviewer: