mirror of
https://github.com/versity/versitygw.git
synced 2026-05-13 07:21:28 +00:00
Merge pull request #2118 from versity/ben/bucket-tags
feat: add bucket metrics tag when request specifies a bucket
This commit is contained in:
@@ -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=<bucketname> 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 {
|
||||
|
||||
Reference in New Issue
Block a user