Skip to content

Compono.Metrics.MeasurementVerificationBuilder T .WithTag(string,object)

Compono.Metrics

Compono.Metrics.MeasurementVerificationBuilder<T>

MeasurementVerificationBuilder\<T>.WithTag(string, object) Method

Restricts matches to measurements that contain a tag with key key (ordinal) whose value satisfies System.Object.Equals(System.Object,System.Object). Other tags are ignored, and there is no numeric coercion (200, an System.Int32, doesn't match 200L). Chain calls for several tags.

public Compono.Metrics.MeasurementVerificationBuilder<T> WithTag(string key, object? value);

Parameters

key System.String

value System.Object

Returns

Compono.Metrics.MeasurementVerificationBuilder<T>

Exceptions

System.ArgumentNullException
key is null.