Skip to content

*: fix tracing for alerts#1978

Merged
bwplotka merged 1 commit intothanos-io:masterfrom
simonpasquier:fix-alert-tracing
Jan 10, 2020
Merged

*: fix tracing for alerts#1978
bwplotka merged 1 commit intothanos-io:masterfrom
simonpasquier:fix-alert-tracing

Conversation

@simonpasquier
Copy link
Copy Markdown
Contributor

Running Thanos Ruler on master generates warnings in the logs because the tracer isn't passed down to Sender.Send():

level=warn ts=2020-01-10T11:24:49.434277378Z caller=http.go:57 msg="Tracer not found in context."
  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Pass the tracer in the context and generate spans when calling the Alertmanager API endpoint.

Verification

No more warning in the logs.
image

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Copy link
Copy Markdown
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@bwplotka bwplotka merged commit 9c968a8 into thanos-io:master Jan 10, 2020
@simonpasquier simonpasquier deleted the fix-alert-tracing branch January 10, 2020 13:12
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