Skip to main content
Requirements: .NET 8+

Installation


Quick start


Configuration reference

Custom resource attributes


Tracing

Manual spans

Use the static façade — works in both DI and non-DI apps after Start() is called:

In ASP.NET Core (DI-injected ActivitySource)

Automatic instrumentation


Metrics

Counter

Histogram

Gauge

Automatic metrics collection


Log forwarding

When using AddTracelit(), all ILogger output is forwarded to the Tracelit logs table via OTLP. Log records are automatically correlated to the active span via trace_id + span_id.

Sampling and error guarantee

Error spans are always exported, even when the parent trace falls outside the sample ratio. The SDK uses a custom ErrorAlwaysOnSampler + ErrorSpanProcessor pair — no configuration required.

Disabling in tests


GitHub

Source code and issue tracker: github.com/Tracelit-AI/tracelit-dotnet