VSTelemetryMeterProvider.IsValidInstrumentName(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.