Skip to content

Compono.Metrics.CapturingMeterFactory.Create(System.Diagnostics.Metrics.MeterOptions)

Compono.Metrics

Compono.Metrics.CapturingMeterFactory

CapturingMeterFactory.Create(MeterOptions) Method

Creates a System.Diagnostics.Metrics.Meter bound to this factory. The same name, version, and tag set (order-insensitive, System.Object.Equals(System.Object,System.Object) on values) returns the same System.Diagnostics.Metrics.Meter; anything else creates a new one. Duplicate tag keys are significant: [k=1, k=1] is a different set from [k=1, j=2].

public System.Diagnostics.Metrics.Meter Create(System.Diagnostics.Metrics.MeterOptions options);

Parameters

options System.Diagnostics.Metrics.MeterOptions

The meter options.

Implements Create(MeterOptions)

Returns

System.Diagnostics.Metrics.Meter

Exceptions

System.ArgumentNullException
options is null.

System.InvalidOperationException
options's System.Diagnostics.Metrics.MeterOptions.Scope is non-null and isn't this factory.

System.ObjectDisposedException
This factory has been disposed.