-
Notifications
You must be signed in to change notification settings - Fork 15
Config visibility report all sources and their values #268
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
base: main
Are you sure you want to change the base?
Conversation
BenchmarksBenchmark execution time: 2025-12-23 18:53:58 Comparing candidate commit 382e80f in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics. |
2c9ad92 to
269c821
Compare
269c821 to
8e33b54
Compare
dmehala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congrats on your first PR here @anna-git. This is surprisingly cheap but an effective solution.
include/datadog/config.h
Outdated
| // The fallback parameter is optional and defaults to nullptr. | ||
| template <typename Value, typename Stringifier = std::nullptr_t, | ||
| typename DefaultValue = std::nullptr_t> | ||
| Value pick(const Optional<Value>& from_env, const Optional<Value>& from_user, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function does more than just pick a value from a list anymore. Either the configuration chain should be structured differently, or the function should be renamed to better reflect its behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, renamed to resolve_and_record_config it in 382e80f and improved documentation
bin/format
Outdated
| process_arg "$arg" | ||
| done | xargs -0 \ | ||
| docker run \ | ||
| --platform linux/amd64 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change necessary? IIRC docker would use the right platform depending on the host platform.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yes I was just getting WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested on my machine and added that but I can get rid of it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in 382e80f
d3fa7ea to
382e80f
Compare
Description
Report all configuration sources to telemetry, even those who aren't applied, in order of precedence.
Motivation
For config visibility, report all sources set
Additional Notes
Jira ticket: [Enhanced Configuration Reporting]
Added one test and adapted one test.