Skip to content
Open
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 @@ -11,6 +11,9 @@ release.

### Traces

- Stabilize Tracer `enabled` operation
([#4941](https://github.com/open-telemetry/opentelemetry-specification/pull/4941))

### Metrics

### Logs
Expand Down
2 changes: 0 additions & 2 deletions specification/trace/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,6 @@ The `Tracer` SHOULD provide functions to:

#### Enabled

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

To help users avoid performing computationally expensive operations when
creating `Span`s, a `Tracer` SHOULD provide this `Enabled` API.

Expand Down
4 changes: 1 addition & 3 deletions specification/trace/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,10 @@ However, the changes MUST be eventually visible.

### Enabled

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

`Enabled` MUST return `false` when either:

- there are no registered [`SpanProcessors`](#span-processor),
- `Tracer` is disabled ([`TracerConfig.enabled`](#tracerconfig) is `false`).
- **Status**: [Development](../document-status.md) - `Tracer` is disabled ([`TracerConfig.enabled`](#tracerconfig) is `false`).

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