diff --git a/CHANGELOG.md b/CHANGELOG.md index f2e40934994..e6dbb2731ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - `SimpleProcessor.Enabled` in `go.opentelemetry.io/otel/sdk/log` now returns `false` if the exporter is `nil`. (#5665) - Update the concurrency requirements of `Exporter` in `go.opentelemetry.io/otel/sdk/log`. (#5666) - `SimpleProcessor` in `go.opentelemetry.io/otel/sdk/log` synchronizes `OnEmit` calls. (#5666) +- The `SimpleProcessor` type in `go.opentelemetry.io/otel/sdk/log` is no longer comparable. (#5693) +- The `BatchProcessor` type in `go.opentelemetry.io/otel/sdk/log` is no longer comparable. (#5693) ### Fixed diff --git a/sdk/log/batch.go b/sdk/log/batch.go index fd913901c28..3faf4d1d4ea 100644 --- a/sdk/log/batch.go +++ b/sdk/log/batch.go @@ -96,6 +96,8 @@ type BatchProcessor struct { // stopped holds the stopped state of the BatchProcessor. stopped atomic.Bool + + noCmp [0]func() //nolint: unused // This is indeed used. } // NewBatchProcessor decorates the provided exporter diff --git a/sdk/log/provider.go b/sdk/log/provider.go index eb1d98acf37..ede1b77c18e 100644 --- a/sdk/log/provider.go +++ b/sdk/log/provider.go @@ -69,6 +69,8 @@ type LoggerProvider struct { loggers map[instrumentation.Scope]*logger stopped atomic.Bool + + noCmp [0]func() //nolint: unused // This is indeed used. } // Compile-time check LoggerProvider implements log.LoggerProvider. diff --git a/sdk/log/record.go b/sdk/log/record.go index a6e50df7782..effb30f62ff 100644 --- a/sdk/log/record.go +++ b/sdk/log/record.go @@ -86,6 +86,8 @@ type Record struct { attributeValueLengthLimit int attributeCountLimit int + + noCmp [0]func() //nolint: unused // This is indeed used. } func (r *Record) addDropped(n int) { diff --git a/sdk/log/simple.go b/sdk/log/simple.go index 863be8df787..b426e414fff 100644 --- a/sdk/log/simple.go +++ b/sdk/log/simple.go @@ -17,6 +17,8 @@ var _ Processor = (*SimpleProcessor)(nil) type SimpleProcessor struct { mu sync.Mutex exporter Exporter + + noCmp [0]func() //nolint: unused // This is indeed used. } // NewSimpleProcessor is a simple Processor adapter.