From 861c5f5d9767d1054aa365e74d0c1488fce04621 Mon Sep 17 00:00:00 2001 From: Ben McClelland Date: Wed, 6 May 2026 13:44:20 -0700 Subject: [PATCH] feat: add bucket metrics tag when request specifies a bucket If the incoming request specifies a bucket name, add a tag bucket= to the metric. Fixes #2103 --- metrics/metrics.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/metrics/metrics.go b/metrics/metrics.go index b95cde68..f9b79519 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -131,6 +131,12 @@ func (m *manager) Send(ctx *fiber.Ctx, err error, action string, count int64, st {Key: "action", Value: a.Name}, } + // add tag bucket= if the request specifies a bucket + bucket := ctx.Params("bucket") + if bucket != "" { + reqTags = append(reqTags, Tag{Key: "bucket", Value: bucket}) + } + reqStatus := status if err != nil {