Skip to content

Conversation

@anna-git
Copy link

@anna-git anna-git commented Dec 16, 2025

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.

@pr-commenter
Copy link

pr-commenter bot commented Dec 17, 2025

Benchmarks

Benchmark execution time: 2025-12-23 18:53:58

Comparing candidate commit 382e80f in PR branch anna/config-visibility-report-all with baseline commit 258a71d in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics.

@anna-git anna-git force-pushed the anna/config-visibility-report-all branch from 2c9ad92 to 269c821 Compare December 23, 2025 15:51
Copy link
Collaborator

@dmehala dmehala left a 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.

// 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,
Copy link
Collaborator

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.

Copy link
Author

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 \
Copy link
Collaborator

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.

Copy link
Author

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

Copy link
Author

Choose a reason for hiding this comment

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

fixed in 382e80f

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.

4 participants