Skip to content

Commit

Permalink
Receive: Added tenant ID tag for span (#5148)
Browse files Browse the repository at this point in the history
* added tenant id tag

Signed-off-by: metonymic-smokey <[email protected]>

* added changelog entry

Signed-off-by: metonymic-smokey <[email protected]>

* removed ctx var

Signed-off-by: metonymic-smokey <[email protected]>
  • Loading branch information
metonymic-smokey authored Feb 12, 2022
1 parent d5e9764 commit 6eedf76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
- [#4667](https://github.com/thanos-io/thanos/pull/4667) Add a pure aws-sdk auth for s3 storage.
- [#5111](https://github.com/thanos-io/thanos/pull/5111) Add matcher support to Query Rules endpoint.
- [#5117](https://github.com/thanos-io/thanos/pull/5117) Bucket replicate: Added flag `--ignore-marked-for-deletion` to avoid replication of blocks with the deletion mark.
- [#5148](https://github.com/thanos-io/thanos/pull/5148) Receive: Add tenant tag for tracing spans.

## Changed
- [#5144](https://github.com/thanos-io/thanos/pull/5144) UI: Improve graph color
Expand Down
2 changes: 1 addition & 1 deletion pkg/store/multitsdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (s *tenantSeriesSetServer) Series(store storepb.StoreServer, r *storepb.Ser
var err error
tracing.DoInSpan(s.ctx, "multitsdb_tenant_series", func(_ context.Context) {
err = store.Series(r, s)
})
}, opentracing.Tags{"tenant.id": s.tenant})
if err != nil {
if r.PartialResponseDisabled || r.PartialResponseStrategy == storepb.PartialResponseStrategy_ABORT {
s.err = errors.Wrapf(err, "get series for tenant %s", s.tenant)
Expand Down

0 comments on commit 6eedf76

Please sign in to comment.