Table of Contents

Class NiteTelemetry

Namespace
Nite.Observability
Assembly
Nite.dll

Nite's traces and metrics, through .NET's own ActivitySource and Nite.Observability.NiteTelemetry.Meter, so the library needs no OpenTelemetry package. To collect them, add the names to your OpenTelemetry setup (in an Aspire app, the ServiceDefaults project):

.WithTracing(tracing => tracing.AddSource(NiteTelemetry.SourceName))
.WithMetrics(metrics => metrics.AddMeter(NiteTelemetry.MeterName))

Nothing is recorded, and nothing costs anything, until a listener subscribes.

public static class NiteTelemetry
Inheritance
NiteTelemetry
Inherited Members

Fields

MeterName

The Nite.Observability.NiteTelemetry.Meter name of Nite's metrics.

public const string MeterName = "Nite"

Field Value

string

SourceName

The ActivitySource name of Nite's spans.

public const string SourceName = "Nite"

Field Value

string