Skip to content

Commit

Permalink
Update processor.go
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared authored Jun 3, 2024
1 parent d72d990 commit ac568ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/log/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type Processor interface {
// are visible in the next registered processor.
// Implementations must not modify the record asynchronously as [Record]
// is not concurrent safe.
// Implementations must not retain the record.
OnEmit(ctx context.Context, record *Record) error
// Enabled returns whether the Processor will process for the given context
// and record.
Expand All @@ -48,6 +49,7 @@ type Processor interface {
//
// Before modifying a Record, the implementation must use Record.Clone
// to create a copy that shares no state with the original.
// Implementations must not retain the record.
Enabled(ctx context.Context, record Record) bool
// Shutdown is called when the SDK shuts down. Any cleanup or release of
// resources held by the exporter should be done in this call.
Expand Down

0 comments on commit ac568ef

Please sign in to comment.