Table of Contents

Class NatsInstrumentationExtensions

Namespace
NATS.Client.OpenTelemetry
Assembly
NATS.Client.OpenTelemetry.dll
public static class NatsInstrumentationExtensions
Inheritance
NatsInstrumentationExtensions
Inherited Members

Methods

AddNatsClientInstrumentation(MeterProviderBuilder)

Adds the NATS .NET client Meter to the meter provider, enabling messaging metrics (published/consumed counters, operation duration, and more).

AddNatsClientInstrumentation(TracerProviderBuilder)

Adds the NATS .NET client ActivitySource to the tracer provider, enabling distributed tracing for publish, subscribe, and request/reply operations.

AddNatsClientInstrumentation(TracerProviderBuilder, Action<NatsInstrumentationOptions>)

Adds the NATS .NET client ActivitySource to the tracer provider and configures the shared NatsInstrumentationOptions.