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

Add SpanLogger.SetSpanAndLogTag() method #467

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

charleskorn
Copy link
Contributor

@charleskorn charleskorn commented Jan 12, 2024

What this PR does:

This PR adds a SetSpanAndLogTag method to SpanLogger.

This is useful for situations where you want to add a tag to a span, and also have this information included in log lines as well.

See grafana/rollout-operator#114 (comment) for the discussion that motivated this functionality.

Which issue(s) this PR fixes:

(none)

Checklist

  • Tests updated
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

charleskorn added a commit to grafana/rollout-operator that referenced this pull request Jan 12, 2024
@charleskorn charleskorn merged commit f30e65d into main Jan 12, 2024
3 checks passed
@charleskorn charleskorn deleted the charleskorn/spanlogger-addtagandloglabel branch January 12, 2024 00:53
charleskorn added a commit to grafana/rollout-operator that referenced this pull request Jan 12, 2024
charleskorn added a commit to grafana/rollout-operator that referenced this pull request Jan 12, 2024
* Upgrade dskit to bring in the changes from grafana/dskit#467

* Use `SetSpanAndLogTag`.

* Add tracing to `zoneTracker`.

* Add changelog entry.
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.

None yet

2 participants