Class MeterScope<T>

Namespace
Cratis.Metrics
Assembly
Cratis.Fundamentals.dll

Represents a scope for metrics.

public class MeterScope<T> : IMeterScope<T>, IDisposable

Type Parameters

T

Type the scope is for.

Inheritance
MeterScope<T>
Implements
Inherited Members
Extension Methods

Remarks

Initializes a new instance of the MeterScope<T> class.

Constructors

MeterScope(IMeter<T>, IDictionary<string, object>)

Represents a scope for metrics.

public MeterScope(IMeter<T> meter, IDictionary<string, object> tags)

Parameters

meter IMeter<T>

The IMeter<T> the scope is for.

tags IDictionary<string, object>

Tags associated with the scope.

Remarks

Initializes a new instance of the MeterScope<T> class.

Properties

Meter

Gets the Meter associated with the scope.

public Meter Meter { get; }

Property Value

Meter

Tags

Gets the tags associated with the scope.

public IDictionary<string, object> Tags { get; }

Property Value

IDictionary<string, object>

Methods

Dispose()

public void Dispose()