Core.Observability
1.3.0
dotnet add package Core.Observability --version 1.3.0
NuGet\Install-Package Core.Observability -Version 1.3.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Core.Observability" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Core.Observability" Version="1.3.0" />
<PackageReference Include="Core.Observability" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Core.Observability --version 1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Core.Observability, 1.3.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Core.Observability@1.3.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Core.Observability&version=1.3.0
#tool nuget:?package=Core.Observability&version=1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
dotnet add package Core.Observability
3-Line OpenTelemetry ASP.NET Core Integration
- trace id in response header
- sends logs, metrics and traces to opentelemetry collector
- enrichment/augmentation of logs and traces even when exceptions occur
- exceptions recorded on traces, client disconnects ignored
- inject trace id to http requests
- health checks (excluded from tracing)
- best practices from aspire
- servicediscovery
- http resilience handler
Initialization in ASP.NET Core
builder.AddObservability();
builder.Services.Configure<ObservabilityOptions>(options =>
{
options.TraceIdHeader = "x-trace-id";
options.Augment = (context, tags) =>
{
tags.Add("TenantId", "extract from http context");
return ValueTask.CompletedTask;
};
});
// required - register early, so exceptions from later middleware are enriched and handled
app.UseObservability();
// optional - /health and /alive are anonymous, consider mapping them only in development or on an internal port
app.MapObservabilityHealthChecks();
app.UseAuthorization();
app.MapControllers();
app.Run();
More Instrumentation
builder.AddObservability(configureTracing: tracer =>
{
tracer.AddEntityFrameworkCoreInstrumentation();
tracer.AddRedisInstrumentation();
});
Environment Variables
"OTEL_SERVICE_NAME": "my-project",
"OTEL_RESOURCE_ATTRIBUTES": "service.namespace=core,environment.name=dev",
"OTEL_EXPORTER_OTLP_ENDPOINT": "http://localhost:4317",
or
"OTEL_EXPORTER_OTLP_ENDPOINT": "http://collector:4317",
"OTEL_EXPORTER_OTLP_PROTOCOL": "grpc"
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.Http.Resilience (>= 10.10.0)
- Microsoft.Extensions.ServiceDiscovery (>= 10.10.0)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.19.1)
- OpenTelemetry.Extensions.Hosting (>= 1.19.1)
- OpenTelemetry.Instrumentation.AspNetCore (>= 1.19.0)
- OpenTelemetry.Instrumentation.Http (>= 1.19.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.3.0 | 151 | 10/3/2026 |
| 1.2.5 | 127 | 8/11/2026 |
| 1.2.4 | 357 | 4/29/2026 |
| 1.2.3 | 4,305 | 3/8/2026 |
| 1.2.2 | 1,464 | 12/7/2025 |
| 1.2.1 | 481 | 11/11/2025 |
| 1.2.0 | 239 | 10/21/2025 |
| 1.1.2 | 798 | 7/11/2025 |
| 1.1.1 | 1,318 | 3/4/2025 |
| 1.1.0 | 965 | 11/12/2024 |
| 1.0.1 | 275 | 8/10/2024 |
| 1.0.0 | 481 | 8/9/2024 |
| 0.0.2 | 1,130 | 7/24/2024 |
| 0.0.1 | 312 | 7/18/2024 |