Skip to content

Commit 96bc8e2

Browse files
committed
add performance guidance for disabled config
1 parent c4db7e0 commit 96bc8e2

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

specification/logs/sdk.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ It consists of the following parameters:
195195
The value of `disabled` MUST be used to resolve whether a `Logger`
196196
is [Enabled](./api.md#enabled). If `disabled` is `true`, `Enabled`
197197
returns `false`. If `disabled` is `false`, `Enabled` returns `true`.
198+
The access and synchronization of `disabled` should be implemented
199+
efficiently to minimize the performance overhead.
198200

199201
### Emit a LogRecord
200202

specification/metrics/sdk.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,9 @@ Note: If a user makes no configuration changes, `Enabled` returns `true` since b
10111011
default `MeterConfig.disabled=false` and instruments use the default
10121012
aggregation when no matching views match the instrument.
10131013

1014+
The access and synchronization of `MeterConfig.disabled` should be implemented
1015+
efficiently to minimize the performance overhead.
1016+
10141017
## Attribute limits
10151018

10161019
**Status**: [Stable](../document-status.md)

specification/trace/sdk.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ It consists of the following parameters:
208208
The value of `disabled` MUST be used to resolve whether a `Tracer`
209209
is [Enabled](./api.md#enabled). If `disabled` is `true`, `Enabled`
210210
returns `false`. If `disabled` is `false`, `Enabled` returns `true`.
211+
The access and synchronization of `disabled` should be implemented
212+
efficiently to minimize the performance overhead.
211213

212214
### Enabled
213215

0 commit comments

Comments
 (0)