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

detect: fix auto-detection of metric exporters to handle none correctly #4745

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

jsternberg
Copy link
Collaborator

The original design for adding metric exporters accidentally relied on
the traces exporter variable for enabling or disabling the metrics
exporter. It's normal for metrics to get auto-enabled with the same
environment variables that traces use, but it should also respond to
none for disabling.

Fixes #4743.

@jsternberg jsternberg force-pushed the none-metrics-exporter branch from a580d97 to 30f20d6 Compare March 7, 2024 18:10
@jsternberg jsternberg requested a review from tonistiigi March 7, 2024 18:10
@crazy-max crazy-max added this to the v0.13.1 milestone Mar 10, 2024
util/tracing/detect/detect.go Outdated Show resolved Hide resolved
util/tracing/detect/detect.go Outdated Show resolved Hide resolved
The original design for adding metric exporters accidentally relied on
the traces exporter variable for enabling or disabling the metrics
exporter. It's normal for metrics to get auto-enabled with the same
environment variables that traces use, but it should also respond to
`none` for disabling.

Signed-off-by: Jonathan A. Sternberg <[email protected]>
@jsternberg jsternberg force-pushed the none-metrics-exporter branch from 30f20d6 to 3947d5b Compare March 11, 2024 20:32
@tonistiigi tonistiigi merged commit 517e253 into moby:master Mar 11, 2024
72 checks passed
@jsternberg jsternberg deleted the none-metrics-exporter branch March 11, 2024 21:20
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.

[v0.13] buildkitd sends metrics when OTEL_METRICS_EXPORTER=none
3 participants