diff --git a/pluginmanager/plugin_runner_v1.go b/pluginmanager/plugin_runner_v1.go index 113530018c..a51921d94f 100644 --- a/pluginmanager/plugin_runner_v1.go +++ b/pluginmanager/plugin_runner_v1.go @@ -447,7 +447,10 @@ func (p *pluginv1Runner) ReceiveLogGroup(logGroup pipeline.LogGroupWithContext) context[ctxKeyTags] = logGroup.LogGroup.LogTags p.ReceiveRawLog(&pipeline.LogWithContext{Log: log, Context: context}) } else { - context := logGroup.Context + context := map[string]interface{}{} + for key, value := range logGroup.Context { + context[key] = value + } context[ctxKeyTopic] = topic for _, tag := range logGroup.LogGroup.LogTags { log.Contents = append(log.Contents, &protocol.Log_Content{