Commit 8d1f3ff
committed
address review: document single-component semantic, test first-match-wins
- Add docstring note explaining the JSON schema enforces exactly one
component per config block (minProperties: 1, maxProperties: 1), and
that "first match wins" is the defensive fallback if validation is
bypassed
- Add test documenting that when multiple built-in fields are set,
the first registry match wins
Assisted-by: Claude Opus 4.61 parent e652f7a commit 8d1f3ff
2 files changed
Lines changed: 15 additions & 0 deletions
File tree
- opentelemetry-sdk
- src/opentelemetry/sdk/_configuration
- tests/_configuration
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
0 commit comments