log/EntryProcessor.Process新增ctx参数并且把ReadonlyEntry中的Context移除;

This commit is contained in:
2023-04-14 00:10:13 +08:00
parent 0f50bc0e73
commit b0180865fc
3 changed files with 6 additions and 5 deletions

View File

@@ -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,