func()

in pkg/metrics/stats_reporter.go [49:62]


func (r *reporter) ReportKeyvaultRequest(ctx context.Context, duration float64, objectType, objectName, err string) {
	attributes := []attribute.KeyValue{
		serviceNameAttr,
		providerAttr,
		osTypeAttr,
		attribute.String(objectTypeKey, objectType),
		attribute.String(objectNameKey, objectName),
		attribute.String(errorKey, err),
	}
	r.meter.RecordBatch(ctx,
		attributes,
		keyvaultRequest.Measurement(duration),
	)
}