Share via


VSTelemetryMeterProvider.IsValidInstrumentName(String) Method

Definition

Returns whether the given instrument name is valid according to the specification.

public static bool IsValidInstrumentName(string instrumentName);
static member IsValidInstrumentName : string -> bool
Public Shared Function IsValidInstrumentName (instrumentName As String) As Boolean

Parameters

instrumentName
String

The instrument name.

Returns

Boolean indicating if the instrument is valid.

Remarks

See specification: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#instrument.

Applies to