Property Filter
Filter
Gets or sets a filter function that determines whether or not to collect telemetry on a per request basis.
public Func<NatsInstrumentationContext, bool>? Filter { get; set; }
Property Value
Remarks
The return value for the filter function is interpreted as follows:
- If filter returns
true, the request is collected. - If filter returns
falseor throws an exception the request is NOT collected.