Commit 9789fa60 authored by Felipe Andrade's avatar Felipe Andrade

add linear to todo

parent 3dff59f8
...@@ -61,12 +61,11 @@ type PromHTTPRecorder struct { ...@@ -61,12 +61,11 @@ type PromHTTPRecorder struct {
HTTPResponses *prometheus.CounterVec HTTPResponses *prometheus.CounterVec
} }
var LatencyBuckets = []float64{.025, .05, .1, .25, .5, 1, 2.5, 5, 10, 25, 50} var LatencyBuckets = []float64{.025, .05, .1, .25, .5, 1, 2.5, 5, 10, 25, 50, 100}
func NewPromHTTPRecorder(r *prometheus.Registry, ns string) HTTPRecorder { func NewPromHTTPRecorder(r *prometheus.Registry, ns string) HTTPRecorder {
return &PromHTTPRecorder{ return &PromHTTPRecorder{
// nosemgrep: todos_require_linear // TODO(INF-509): remove this in the future when services opted in to HTTPRequestLatency
// TODO: remove this in the future when services opted in to HTTPRequestLatency
HTTPRequestDuration: promauto.With(r).NewHistogramVec(prometheus.HistogramOpts{ HTTPRequestDuration: promauto.With(r).NewHistogramVec(prometheus.HistogramOpts{
Namespace: ns, Namespace: ns,
Name: "http_request_duration_ms", Name: "http_request_duration_ms",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment