Skip to content

Commit a4f2070

Browse files
committed
Update instrumentation config behavior to return empty object when not set
1 parent b66a381 commit a4f2070

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ release.
4646
([#4802](https://github.com/open-telemetry/opentelemetry-specification/pull/4802))
4747
- Declarative configuration: clarify Registry ComponentProvider `type` parameter
4848
([#4799](https://github.com/open-telemetry/opentelemetry-specification/pull/4799))
49+
- Declarative configuration: Update instrumentation config behavior to return
50+
empty object when not set
51+
([#4817](https://github.com/open-telemetry/opentelemetry-specification/pull/4817))
4952

5053
### Common
5154

specification/configuration/api.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ Obtain configuration relevant to instrumentation libraries.
6060
the [`.instrumentation`](https://github.com/open-telemetry/opentelemetry-configuration/blob/670901762dd5cce1eecee423b8660e69f71ef4be/examples/kitchen-sink.yaml#L438-L439)
6161
configuration mapping node.
6262

63-
If the `.instrumentation` node is not set, get instrumentation config MUST
64-
return nil, null, undefined or another language-specific idiomatic pattern
65-
denoting empty.
63+
If the `.instrumentation` node is not set, get instrumentation config SHOULD
64+
return empty object (as if `.instrumentation: {}` was set).
6665

6766
### ConfigProperties
6867

0 commit comments

Comments
 (0)