168
info *grpc.UnaryServerInfo,
169
handler grpc.UnaryHandler,
171
>
methodName := api.MethodName(info.FullMethod)
172
>
nsName := MustGetNamespaceName(ti.namespaceRegistry, req)
173
>
174
>
metricsHandler, logTags := ti.unaryMetricsHandlerLogTags(req, info.FullMethod, methodName, nsName)
175
>
176
>
ctx = AddTelemetryContext(ctx, metricsHandler)
177
>
metrics.ServiceRequests.With(metricsHandler).Record(1)
178
>
179
>
startTime := time.Now().UTC()
180
>
defer func() {
181
>
ti.RecordLatencyMetrics(ctx, startTime, metricsHandler)
182
>
}()
183
185
>
186
>
if configs.IsAPIOperation(info.FullMethod) {
187
metrics.OperationCounter.With(metricsHandler).Record(
188
1,