Skip to content

Commit 5a37dcd

Browse files
authored
chore(instrumentation-undici): update metric names to semconv METRIC_* exports (#3125)
1 parent 5a5918f commit 5a37dcd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/instrumentation-undici/src/undici.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ import {
5252
ATTR_URL_QUERY,
5353
ATTR_URL_SCHEME,
5454
ATTR_USER_AGENT_ORIGINAL,
55+
METRIC_HTTP_CLIENT_REQUEST_DURATION,
5556
} from '@opentelemetry/semantic-conventions';
5657

5758
/** @knipignore */
@@ -136,7 +137,7 @@ export class UndiciInstrumentation extends InstrumentationBase<UndiciInstrumenta
136137

137138
protected override _updateMetricInstruments() {
138139
this._httpClientDurationHistogram = this.meter.createHistogram(
139-
'http.client.request.duration',
140+
METRIC_HTTP_CLIENT_REQUEST_DURATION,
140141
{
141142
description: 'Measures the duration of outbound HTTP requests.',
142143
unit: 's',

0 commit comments

Comments
 (0)