func()

in pkg/metrics/stats_reporter.go [66:79]


func (r *reporter) ReportGRPCRequest(ctx context.Context, duration float64, method, code, message string) {
	attributes := []attribute.KeyValue{
		serviceNameAttr,
		providerAttr,
		osTypeAttr,
		attribute.String(grpcMethodKey, method),
		attribute.String(grpcCodeKey, code),
		attribute.String(grpcMessageKey, message),
	}
	r.meter.RecordBatch(ctx,
		attributes,
		grpcRequest.Measurement(duration),
	)
}