You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sdk/log: move Enabled method from FilterProcessor to Processor (#7639)
Fixes#7617
Simplify the Logs SDK by unifying processor capabilities into a single
interface.
- Add `Enabled(ctx context.Context, p EnabledParameters) bool` to
`sdk/log.Processor`.
- Remove `sdk/log.FilterProcessor` interface.
`Processor` implementations must now implement the `Enabled` method.
Custom processors that do not filter records can implement `Enabled` to
return `true`.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
24
24
- Add experimental observability metrics for manual reader in `go.opentelemetry.io/otel/sdk/metric`. (#7524)
25
25
- Add experimental observability metrics for periodic reader in `go.opentelemetry.io/otel/sdk/metric`. (#7571)
26
26
- Support `OTEL_EXPORTER_OTLP_LOGS_INSECURE` and `OTEL_EXPORTER_OTLP_INSECURE` environmental variables in `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`. (#7608)
27
+
- Add `Enabled` method to the `Processor` interface in `go.opentelemetry.io/otel/sdk/log`.
28
+
All `Processor` implementations now include an `Enabled` method. (#7639)
27
29
- The `go.opentelemetry.io/otel/semconv/v1.38.0` package.
28
30
The package contains semantic conventions from the `v1.38.0` version of the OpenTelemetry Semantic Conventions.
29
31
See the [migration documentation](./semconv/v1.38.0/MIGRATION.md) for information on how to upgrade from `go.opentelemetry.io/otel/semconv/v1.37.0.`(#7648)
@@ -46,6 +48,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
46
48
### Removed
47
49
48
50
- Drop support for [Go 1.23]. (#7274)
51
+
- Remove the `FilterProcessor` interface in `go.opentelemetry.io/otel/sdk/log`.
52
+
The `Enabled` method has been added to the `Processor` interface instead.
53
+
All `Processor` implementations must now implement the `Enabled` method.
54
+
Custom processors that do not filter records can implement `Enabled` to return `true`. (#7639)
0 commit comments