Repository navigation
docs: add a guide for adding or changing a configuration key - #410
Conversation
Link it from AGENTS.md and docs/README.md. Fix the environment.h comment: the generated JSON is at the repo root, and ENV_DEFAULT_RESOLVED_IN_CODE emits an empty default.
Move the configuration guide link out of AGENTS.md into docs/development.md, which AGENTS.md already points to. Note that a new ConfigName goes at the end of the enum.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
BenchmarksBenchmark execution time: 2026-11-23 19:00:01 Comparing candidate commit 4f77ad6 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 8 metrics, 0 unstable metrics.
|
There was a problem hiding this comment.
More details
The configuration guide matches the repository’s configuration code, metadata generator, and CI definitions. The changes affect documentation and comments only; no actionable issues were identified.
🤖 Bits Code Review · Commit 4b186f9
There was a problem hiding this comment.
Since this is added procedure is to be applied internally, I think it could better fit in the Confluence internal documentation, not in the public documentation which should focus on things useful for all contributors, internal and external. Please give me some time to think about it.
|
@xlamorlette-datadog The motivation here is that we've seen agents in other repos make changes they shouldn't be making, so the directive here is specifically to ensure that agents don't go rogue. We already have documentation for internal contributors here. Also, I'd argue that this documentation is necessary for external contributors as well as they can create and modify configs as well. :) |
xlamorlette-datadog
left a comment
There was a problem hiding this comment.
That's great!
Rename the guide to docs/configuration_keys.md and use the term "configuration key" from the public documentation. Simplify the per-component notes, move the development.md section to the bottom, and fix the error message and diff path in the supported configurations CI step.
|
@xlamorlette-datadog Thanks for the suggestions - I resolved them in 4f77ad6. |
Overview
Add
docs/configuration_keys.md, a step-by-step guide for adding or changing a configuration key (environment variable). Link it fromdocs/development.md(whichAGENTS.mdalready points to) anddocs/README.md.AGENTS.mdis unchanged.Also:
include/datadog/environment.h:supported-configurations.jsonis at the repo root, not inmetadata/.config-inversionwrites an empty string forENV_DEFAULT_RESOLVED_IN_CODE, not the description. WithDECIMALit writes"".Verify supported configurations metadatastep in.github/workflows/dev.yml: the error message ran the suggested command through backticks instead of printing it, anddiff -ucompared the wrong temporary file.Motivation
Adding a configuration key touches several places: the
environment.hlist, the reading code, the generatedsupported-configurations.json, the central configuration registry, and tests. Two CI jobs fail if one is missed. Nothing in the repo described the whole flow. Other dd-trace repos have a similar guide.Additional Notes
The guide is based on what the code and CI do now. I checked the commands by building
config-inversionlocally and running it from the repo root.supported-configurations.jsonis unchanged.References
Jira ticket:
Contributor Checklist