-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Receiver: instrument multitsdb tenant series tracing tag correctly #5002
Comments
Added tag |
From a quick look at the linked code references, I think adding a tag to the context here should fix it? |
Yeah I think so, would you like to give it a try? |
I'll start working on it over the weekend.
…On Sun, 9 Jan 2022, 21:19 Ben Ye, ***@***.***> wrote:
From a quick look at the linked code references, I think adding a tag to
the context here
<https://github.com/thanos-io/thanos/blob/main/pkg/store/multitsdb.go#L172>
should fix it?
Yeah I think so, would you like to give it a try?
—
Reply to this email directly, view it on GitHub
<#5002 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALV2I56N76STSYYTQ3ANOLTUVGVB3ANCNFSM5KY3NMAQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Opened a draft PR. Please let me know if I'm proceeding in the right direction. Many thanks! |
At https://github.com/thanos-io/thanos/blob/main/pkg/store/multitsdb.go#L274, a
tenant
tag is added. But it usesClientAddContextTags
method and that method is only used in gRPC method calls. In the case of tenant's local TSDB, there is no gRPC call anymore so the instrumentation doesn't work.I expect to see https://github.com/thanos-io/thanos/blob/main/pkg/store/multitsdb.go#L172 get properly instrumented with the tenant tag.
Screenshot of the traces for tenant series call:
The text was updated successfully, but these errors were encountered: