Table of Contents

Property Filter

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

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

Func<NatsInstrumentationContext, bool>

Remarks

The return value for the filter function is interpreted as follows:

  • If filter returns true, the request is collected.
  • If filter returns false or throws an exception the request is NOT collected.