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

Use Prometheus common version library #1616

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Use Prometheus common version library #1616

merged 1 commit into from
Jan 9, 2025

Conversation

SuperQ
Copy link
Contributor

@SuperQ SuperQ commented Jan 6, 2025

Use the Prometheus common version library to provide embedded build context.

Fixes: #1615

@SuperQ SuperQ requested a review from cristiangreco January 6, 2025 20:18
cmd/yace/main.go Outdated Show resolved Hide resolved
@SuperQ
Copy link
Contributor Author

SuperQ commented Jan 7, 2025

IMO, the version string itself is not all that important compared to the build context. This is why I added the build context output to the log.

I was also going to add a a build info metric with the version collector package. But I hadn't decided on where exactly I wanted to register it.

Use the Prometheus common version library to provide embedded
build context.

Fixes: #1615

Signed-off-by: SuperQ <[email protected]>
Copy link
Contributor

@cristiangreco cristiangreco left a comment

Choose a reason for hiding this comment

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

LGTM

@SuperQ SuperQ merged commit 8f8a564 into master Jan 9, 2025
10 checks passed
@SuperQ SuperQ deleted the superq/version branch January 9, 2025 12:21
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.

[BUG] Version is not properly embedded into go binary
2 participants