File tree 1 file changed +2
-1
lines changed 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ type annotatedMetric struct {
56
56
username string
57
57
workspaceName string
58
58
agentName string
59
+ labels []agentsdk.AgentMetricLabel
59
60
60
61
expiryDate time.Time
61
62
}
@@ -122,7 +123,7 @@ func (ma *MetricsAggregator) Run(ctx context.Context) func() {
122
123
UpdateLoop:
123
124
for _ , m := range req .metrics {
124
125
for i , q := range ma .queue {
125
- if q .username == req .username && q .workspaceName == req .workspaceName && q .agentName == req .agentName && q .Name == m .Name {
126
+ if q .username == req .username && q .workspaceName == req .workspaceName && q .agentName == req .agentName && q .Name == m .Name && q . labels == m . Labels {
126
127
ma .queue [i ].AgentMetric .Value = m .Value
127
128
ma .queue [i ].expiryDate = req .timestamp .Add (ma .metricsCleanupInterval )
128
129
continue UpdateLoop
You can’t perform that action at this time.
0 commit comments