@@ -65,12 +65,12 @@ func TestGRPCInterceptor(t *testing.T) {
65
65
counters := handler .Counters ()
66
66
require .Len (t , counters , 1 )
67
67
require .Equal (t , metrics .TemporalRequest + "_my_suffix" , counters [0 ].Name )
68
- require .Equal (t , map [string ]string {metrics .OperationTagName : "Check" }, counters [0 ].Tags )
68
+ require .Equal (t , map [string ]string {metrics .OperationTagName : "Check" , metrics . NamespaceTagName : "_unknown_" }, counters [0 ].Tags )
69
69
require .Equal (t , int64 (1 ), counters [0 ].Value ())
70
70
timers := handler .Timers ()
71
71
require .Len (t , timers , 1 )
72
72
require .Equal (t , metrics .TemporalRequestLatency + "_my_suffix" , timers [0 ].Name )
73
- require .Equal (t , map [string ]string {metrics .OperationTagName : "Check" }, timers [0 ].Tags )
73
+ require .Equal (t , map [string ]string {metrics .OperationTagName : "Check" , metrics . NamespaceTagName : "_unknown_" }, timers [0 ].Tags )
74
74
75
75
// Now clear the metrics and set a handler with tags and long poll on the
76
76
// context and make a known failing call
@@ -85,9 +85,9 @@ func TestGRPCInterceptor(t *testing.T) {
85
85
counters = handler .Counters ()
86
86
require .Len (t , counters , 2 )
87
87
require .Equal (t , metrics .TemporalLongRequest + "_my_suffix" , counters [0 ].Name )
88
- require .Equal (t , map [string ]string {metrics .OperationTagName : "Check" , "roottag" : "roottagval" }, counters [0 ].Tags )
88
+ require .Equal (t , map [string ]string {metrics .OperationTagName : "Check" , "roottag" : "roottagval" , metrics . NamespaceTagName : "_unknown_" }, counters [0 ].Tags )
89
89
require .Equal (t , int64 (1 ), counters [0 ].Value ())
90
90
require .Equal (t , metrics .TemporalLongRequestFailure + "_my_suffix" , counters [1 ].Name )
91
- require .Equal (t , map [string ]string {metrics .OperationTagName : "Check" , "roottag" : "roottagval" }, counters [1 ].Tags )
91
+ require .Equal (t , map [string ]string {metrics .OperationTagName : "Check" , "roottag" : "roottagval" , metrics . NamespaceTagName : "_unknown_" }, counters [1 ].Tags )
92
92
require .Equal (t , int64 (1 ), counters [1 ].Value ())
93
93
}
0 commit comments