Skip to content

Commit

Permalink
Update sdk/log/example_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Xie <[email protected]>
  • Loading branch information
pellared and XSAM authored Feb 7, 2025
1 parent cb91d27 commit 71376d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdk/log/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,13 @@ type ContextFilterProcessor struct {
log.Processor

lazyFilter sync.Once
// Support the experimental FilterProcessor interface.
// Support the experimental FilterProcessor interface for the embedded processor.
filter xlog.FilterProcessor
}

// Compile time check
var _ xlog.FilterProcessor = (*ContextFilterProcessor)(nil)

func (p *ContextFilterProcessor) OnEmit(ctx context.Context, record *log.Record) error {
if ignoreLogs(ctx) {
return nil
Expand Down

0 comments on commit 71376d1

Please sign in to comment.