Skip to content

Commit

Permalink
fix TaskMarshallingLatencySummary usage
Browse files Browse the repository at this point in the history
  • Loading branch information
IngoRoessner committed Jan 17, 2024
1 parent e574632 commit 0d9f64e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prometheus/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (this *Metrics) ServeHTTP(writer http.ResponseWriter, request *http.Request
}

func (this *Metrics) LogTaskMarshallingLatency(endpoint string, userId string, serviceId string, functionId string, latency time.Duration) {
this.TaskCommandRoundtripLatencyMsSummary.Observe(float64(latency.Milliseconds()))
this.TaskMarshallingLatencySummary.Observe(float64(latency.Milliseconds()))
this.TaskMarshallingLatency.WithLabelValues(getInstanceId(), userId, endpoint, serviceId, functionId).Observe(float64(latency.Milliseconds()))
}

Expand Down

0 comments on commit 0d9f64e

Please sign in to comment.