Skip to content

Commit

Permalink
log: Make Record not comparable
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared committed Sep 25, 2024
1 parent d284a86 commit 5e96e97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions log/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e96e97

Please sign in to comment.