Skip to content

Commit 7764cbd

Browse files
authored
fix workflow_query_success_count tag mismatch (#7838)
## What changed? workflow_query_success_count was being emitted with variable tag key. fixing it. ## Why? ## How did you test it? - [ ] built - [ ] run locally and tested manually - [ ] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s) ## Potential risks
1 parent 22045c9 commit 7764cbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/metrics/tags.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const (
4949
runInitiator = "run_initiator"
5050
fromUnversioned = "from_unversioned"
5151
toUnversioned = "to_unversioned"
52-
queryType = "query_type"
52+
queryTypeTag = "query_type"
5353
namespaceAllValue = "all"
5454
unknownValue = "_unknown_"
5555
totalMetricSuffix = "_total"
@@ -428,7 +428,7 @@ func QueryTypeTag(queryType string) Tag {
428428
return &tagImpl{key: queryType, value: queryType}
429429
}
430430
// group all user defined queries into a single tag value
431-
return &tagImpl{key: queryType, value: queryTypeUserDefined}
431+
return &tagImpl{key: queryTypeTag, value: queryTypeUserDefined}
432432
}
433433

434434
func VersioningBehaviorBeforeOverrideTag(behavior enumspb.VersioningBehavior) Tag {

0 commit comments

Comments
 (0)