Skip to content

Commit

Permalink
feat: add configkey in extension (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
sw1136562366 authored May 13, 2024
1 parent f49aa48 commit 5df0b42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/plugin/output/gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ func convertToTaskResult2(configKey, targetKey, metricName string, array []*mode

a := make([]*pb.WriteMetricsRequestV4_TaskResult, 0, len(taskResultByValueName)+1)
for _, r := range taskResultByValueName {
r.Extension = map[string]string{
"configKey": configKey,
}
a = append(a, r)
}

Expand All @@ -166,6 +169,9 @@ func convertToTaskResult2(configKey, targetKey, metricName string, array []*mode
Completeness: &pb.WriteMetricsRequestV4_Completeness{
Ok: completeness.OK,
},
Extension: map[string]string{
"configKey": configKey,
},
}
a = append(a, r)
}
Expand Down

0 comments on commit 5df0b42

Please sign in to comment.