diff --git a/server/server.go b/server/server.go index ce85c8e4..b47b4f1f 100644 --- a/server/server.go +++ b/server/server.go @@ -68,6 +68,8 @@ func WithMetrics(handleFn func(http.ResponseWriter, *http.Request) error, m metr // where the first 3 bytes of the path are the commitment header // commit type | da layer type | version byte // we want to group all requests by commitment header, otherwise the prometheus metric labels will explode + // TODO: commitment header is different for non-op commitments. We will need to change this to accomodate other commitments. + // probably want (commitment mode, cert version) as the labels, since commit-type/da-layer are not relevant anyways. commitmentHeader := r.URL.Path[:3] recordDur := m.RecordRPCServerRequest(commitmentHeader)