Commit 7cdd4c4
Stabilize LogRecordProcessor.Enabled (#4717)
Fixes
#4458
According to [spec compliance
matrix](https://github.com/open-telemetry/opentelemetry-specification/blob/main/spec-compliance-matrix.md#logs)
this feature is already implemented in 2 languages (Go and Rust; PHP
approved, but not implemented yet), even though it is marked as
optional.
In OTel Go, the design and implementation of this feature have remained
unchanged since
[2025-03-05](https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.35.0).
Since that release, we haven’t received any feedback or proposals
suggesting changes.
Given this, I would like to propose **stabilizing this feature in the
specification**. Doing so is also a prerequisite for stabilizing the
OTel Go Logs SDK.
_From
#4458 (comment)
[Advanced processing
guidelines](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/supplementary-guidelines.md#advanced-processing),
they already show how to implement `Enabled` and how processors can be
composed (e.g. chained).
Examples from OTel Go documentation:
- https://pkg.go.dev/go.opentelemetry.io/contrib/processors/minsev
-
https://pkg.go.dev/go.opentelemetry.io/otel/sdk/log#example-FilterProcessor
More info on use cases, chaining/composing processors, and declarative
configuration:
#4717 (comment)
Approvals from languages that implement (or plan to implement)
`LogRecordProcessor.Enabled`:
- OTel Go - APPROVED ✔️
- OTel Rust - APPROVED ✔️
- OTel PHP - APPROVED ✔️
---------
Co-authored-by: Cijo Thomas <[email protected]>1 parent 5b5b91b commit 7cdd4c4
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
256 | | - | |
| 255 | + | |
257 | 256 | | |
258 | 257 | | |
259 | 258 | | |
| |||
406 | 405 | | |
407 | 406 | | |
408 | 407 | | |
409 | | - | |
410 | | - | |
411 | 408 | | |
412 | 409 | | |
413 | 410 | | |
| |||
0 commit comments