Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ release.

### Metrics

- Allow instrument `Enabled` implementation to have additional optimizations and features.
([#4747](https://github.com/open-telemetry/opentelemetry-specification/pull/4747))

### Logs

- Stabilize `LogRecordProcessor.Enabled`.
Expand Down
6 changes: 4 additions & 2 deletions specification/metrics/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -999,14 +999,16 @@ must be retained.

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

The instrument [Enabled](./api.md#enabled) operation MUST return `false` if any
of the following conditions are true, and `true` otherwise:
The instrument [`Enabled`](./api.md#enabled) MUST return `false` when either:

* The [MeterConfig](#meterconfig) of the `Meter` used to create the instrument
has parameter `disabled=true`.
* All [resolved views](#measurement-processing) for the instrument are
configured with the [Drop Aggregation](#drop-aggregation).

Otherwise, it SHOULD return `true`.
It MAY return `false` to support additional optimizations and features.

Note: If a user makes no configuration changes, `Enabled` returns `true` since by
default `MeterConfig.disabled=false` and instruments use the default
aggregation when no matching views match the instrument.
Expand Down
Loading