1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2026-06-03 18:35:08 +02:00

log: Make Record not comparable (#5847)

Fixes https://github.com/open-telemetry/opentelemetry-go/issues/5696
This commit is contained in:
Robert Pająk
2024-09-26 08:32:36 +02:00
committed by GitHub
parent 84677a6554
commit f710cecfc5
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -16,6 +16,9 @@ const attributesInlineCount = 5
// Record represents a log record.
type Record struct {
// Ensure forward compatibility by explicitly making this not comparable.
noCmp [0]func() //nolint: unused // This is indeed used.
timestamp time.Time
observedTimestamp time.Time
severity Severity