Npgsql.OpenTelemetry 7.0.4
Npgsql is the open source .NET data provider for PostgreSQL. It allows you to connect and interact with PostgreSQL server using .NET.
This package helps set up Npgsql's support for OpenTelemetry tracing, which allows you to observe database commands as they are being executed.
You can drop the following code snippet in your application's startup, and you should start seeing tracing information on the console:
using var tracerProvider = Sdk.CreateTracerProviderBuilder()
.SetResourceBuilder(ResourceBuilder.CreateDefault().AddService("npgsql-tester"))
.SetSampler(new AlwaysOnSampler())
// This optional activates tracing for your application, if you trace your own activities:
.AddSource("MyApp")
// This activates up Npgsql's tracing:
.AddNpgsql()
// This prints tracing data to the console:
.AddConsoleExporter()
.Build();
Once this is done, you should start seeing Npgsql trace data appearing in your application's console. At this point, you can look into exporting your trace data to a more useful destination: systems such as Zipkin or Jaeger can efficiently collect and store your data, and provide user interfaces for querying and exploring it.
For more information, visit the diagnostics documentation page.
Showing the top 20 packages that depend on Npgsql.OpenTelemetry.
Packages | Downloads |
---|---|
Aspire.Npgsql
A PostgreSQL® client that integrates with Aspire, including health checks, metrics, logging, and telemetry.
|
3 |
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.
|
3 |
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.
|
2 |
Aspire.Npgsql
A PostgreSQL® client that integrates with Aspire, including health checks, metrics, logging, and telemetry.
|
2 |
.NET Standard 2.0
- Npgsql (>= 7.0.4)
- OpenTelemetry.API (>= 1.3.1)
Version | Downloads | Last updated |
---|---|---|
9.0.3 | 2 | 6/10/2025 |
9.0.2 | 2 | 6/10/2025 |
9.0.1 | 2 | 6/10/2025 |
9.0.0 | 2 | 6/10/2025 |
8.0.7 | 2 | 6/10/2025 |
8.0.6 | 2 | 6/10/2025 |
8.0.5 | 2 | 6/10/2025 |
8.0.4 | 2 | 6/10/2025 |
8.0.3 | 2 | 6/10/2025 |
8.0.2 | 2 | 6/10/2025 |
8.0.1 | 2 | 6/11/2025 |
8.0.0 | 1 | 6/14/2025 |
8.0.0-rtm | 2 | 6/10/2025 |
8.0.0-rc.2 | 2 | 6/10/2025 |
8.0.0-preview.4 | 3 | 6/10/2025 |
8.0.0-preview.3 | 2 | 6/10/2025 |
8.0.0-preview.2 | 3 | 6/10/2025 |
8.0.0-preview.1 | 2 | 6/10/2025 |
7.0.10 | 2 | 6/10/2025 |
7.0.9 | 2 | 6/10/2025 |
7.0.8 | 2 | 6/10/2025 |
7.0.7 | 2 | 6/10/2025 |
7.0.6 | 2 | 6/10/2025 |
7.0.4 | 2 | 6/10/2025 |
7.0.2 | 2 | 6/10/2025 |
7.0.1 | 1 | 6/15/2025 |
7.0.0 | 2 | 6/11/2025 |
7.0.0-rc.2 | 2 | 6/10/2025 |
7.0.0-rc.1 | 2 | 6/10/2025 |
7.0.0-preview.7 | 2 | 6/10/2025 |
7.0.0-preview.6 | 2 | 6/10/2025 |
7.0.0-preview.5 | 2 | 6/11/2025 |
7.0.0-preview.4 | 2 | 6/10/2025 |
7.0.0-preview.3 | 2 | 6/10/2025 |
7.0.0-preview.2 | 1 | 6/14/2025 |
7.0.0-preview.1 | 3 | 6/10/2025 |
6.0.13 | 3 | 6/6/2025 |
6.0.12 | 2 | 6/10/2025 |
6.0.11 | 2 | 6/10/2025 |
6.0.10 | 2 | 6/10/2025 |
6.0.9 | 2 | 6/10/2025 |
6.0.8 | 1 | 6/14/2025 |
6.0.7 | 2 | 6/10/2025 |
6.0.6 | 2 | 6/10/2025 |
6.0.5 | 2 | 6/10/2025 |
6.0.4 | 2 | 6/10/2025 |
6.0.3 | 2 | 6/10/2025 |
6.0.2 | 3 | 6/10/2025 |
6.0.1 | 1 | 6/14/2025 |
6.0.0 | 2 | 6/11/2025 |
6.0.0-rc.2 | 2 | 6/9/2025 |