.NET Monitoring
.NET monitoring
for ASP.NET Core and beyond.
Instrument ASP.NET Core, HttpClient and SQL Client with the official OpenTelemetry packages and see requests, dependencies and runtime health together. Configuration lives in your host builder, next to the rest of your services.
What you see
Traces, metrics and logs from .NET
The OpenTelemetry SDK registers in your host builder; instrumentation packages are added per library.
Distributed traces
Incoming requests and outgoing dependencies as spans, with W3C trace context.
Runtime metrics
Garbage collection, thread pool and allocation metrics, plus ASP.NET Core request metrics.
Correlated logs
ILogger output exported over OTLP with the active trace attached.
Frameworks and libraries
Each of these has official OpenTelemetry instrumentation. aiAxonIQ receives it over OTLP, so anything the OpenTelemetry project adds for .NET works here too.
- ASP.NET Core
- HttpClient
- SQL Client
- Entity Framework Core
- gRPC
- StackExchange.Redis
- Npgsql
- ILogger
Set up
Send .NET telemetry in three steps
The full guide, including sampling and resource attributes, is in the documentation.
1Install
dotnet add package OpenTelemetry.Extensions.Hosting dotnet add package OpenTelemetry.Exporter.OpenTelemetryProtocol2Configure
export OTEL_EXPORTER_OTLP_ENDPOINT="https://app.aiaxoniq.com/otlp" export OTEL_EXPORTER_OTLP_HEADERS="x-license-key=YOUR_LICENSE_KEY" export OTEL_SERVICE_NAME="my-service"3Run
dotnet run
How the data flows
- 1. Instrument. The OpenTelemetry SDK for .NET records spans, metrics and logs in your process.
- 2. Export. It sends them over OTLP, straight to aiAxonIQ or through an OpenTelemetry Collector you already run.
- 3. Explore. Traces, metrics and logs land in one store, so a slow request opens onto its queries and its log lines.
Because the wire format is OTLP, the same instrumentation works with any OpenTelemetry backend. Moving to aiAxonIQ, or away from it, is an endpoint change.
.NET questions
- Is there a zero-code option?
- Yes. OpenTelemetry .NET Automatic Instrumentation attaches to a running application through environment variables, with no change to your code or project file.
- Does it support .NET Framework?
- Yes. Besides modern .NET, the OpenTelemetry .NET SDK supports .NET Framework 4.6.2 and later, so older services can report into the same traces.