log/EntryProcessor.Process新增ctx参数并且把ReadonlyEntry中的Context移除;
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package logjson
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
@@ -36,7 +37,7 @@ type Processor struct {
|
||||
}
|
||||
|
||||
// Process 处理日志
|
||||
func (processor *Processor) Process(entry logsdk.ReadonlyEntry) {
|
||||
func (processor *Processor) Process(_ context.Context, entry logsdk.ReadonlyEntry) {
|
||||
m := Entry{
|
||||
Stack: entry.Stack,
|
||||
Fields: entry.Fields,
|
||||
|
||||
Reference in New Issue
Block a user