Udostępnij przez


IHistogram<T> Interfejs

Definicja

Histogram zdefiniowany przez standard OpenTelemetry. Specyfikacja interfejsu OPENTelemetry: https://opentelemetry.io/docs/reference/specification/metrics/api/ specyfikacja interfejsu API platformy .NET: https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.metrics.histogram-1?view=net-6.0

Ten interfejs umożliwia kodowanie do standardu OpenTelemetry bez uaktualniania naszego .NET Framework. Ponieważ jest to ten sam standard, możemy zaktualizować implementacje do cienkiej otoki wokół OTel, gdy wszystko będzie gotowe. Pozwala to również uniknąć ponownego instrumentacji dla deweloperów.

public interface IHistogram<T> : Microsoft.VisualStudio.Telemetry.Metrics.IInstrument where T : struct
type IHistogram<'T (requires 'T : struct)> = interface
    interface IInstrument
Public Interface IHistogram(Of T)
Implements IInstrument

Parametry typu

T

Typ licznika. Obsługiwane typy: Byte, , Int32Int16, Int64, Double, Singlei Decimal.

Pochodne
Implementuje

Właściwości

Description

Pobiera opis instrumentu.

(Odziedziczone po IInstrument)
Enabled

Pobiera wartość wskazującą, czy istnieją odbiorniki dla tego instrumentu.

(Odziedziczone po IInstrument)
IsObservable

Pobiera wartość wskazującą, czy instrument jest obserwowalnym instrumentem.

(Odziedziczone po IInstrument)
Meter

Pobiera miernik, który utworzył instrument.

(Odziedziczone po IInstrument)
Name

Pobiera nazwę instrumentu.

(Odziedziczone po IInstrument)
Unit

Pobiera jednostkę przyrządu pomiarów.

(Odziedziczone po IInstrument)

Metody

Record(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>, KeyValuePair<String,Object>)

Rejestruje wartość miary.

Record(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>)

Rejestruje wartość miary.

Record(T, KeyValuePair<String,Object>)

Rejestruje wartość miary.

Record(T, KeyValuePair<String,Object>[])

Rejestruje wartość miary.

Record(T, ReadOnlySpan<KeyValuePair<String,Object>>)

Rejestruje wartość miary.

Record(T)

Rejestruje wartość miary.

Dotyczy