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

Fixes Promtail User-Agent. #4716

Merged
merged 1 commit into from
Nov 9, 2021

Conversation

cyriltovena
Copy link
Contributor

@cyriltovena cyriltovena commented Nov 9, 2021

This was because promtail client was still user the old version.Version which is initialized at run-time via init.

But if we use it also at init time there's no guarantee that the version will be set.

So instead I'm using the original version variable stamped in the binary and not at runtime.

Fixes #4686

Signed-off-by: Cyril Tovena [email protected]

This was because promtail client was still user the old version.Version which is initialized at run-time via init.

But if we use it also at init time there's no guarantee that the version will be set.

So intead I'm using the original version variable stamped in the binary and not at runtime.

Fixes grafana#4686

Signed-off-by: Cyril Tovena <[email protected]>
@cyriltovena cyriltovena requested a review from a team as a code owner November 9, 2021 17:29
Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

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

LGTM

@dannykopping dannykopping merged commit 2f1e2fc into grafana:main Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Version not included in promtail user-agent
2 participants