![]() |
VOOZH | about |
dotnet add package Npgsql.OpenTelemetry --version 10.0.3
NuGet\Install-Package Npgsql.OpenTelemetry -Version 10.0.3
<PackageReference Include="Npgsql.OpenTelemetry" Version="10.0.3" />
<PackageVersion Include="Npgsql.OpenTelemetry" Version="10.0.3" />Directory.Packages.props
<PackageReference Include="Npgsql.OpenTelemetry" />Project file
paket add Npgsql.OpenTelemetry --version 10.0.3
#r "nuget: Npgsql.OpenTelemetry, 10.0.3"
#:package Npgsql.OpenTelemetry@10.0.3
#addin nuget:?package=Npgsql.OpenTelemetry&version=10.0.3Install as a Cake Addin
#tool nuget:?package=Npgsql.OpenTelemetry&version=10.0.3Install as a Cake Tool
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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on Npgsql.OpenTelemetry:
| Package | Downloads |
|---|---|
|
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry. |
|
|
Aspire.Npgsql
A PostgreSQL® client that integrates with Aspire, including health checks, metrics, logging, and telemetry. |
|
|
Sitko.Core.Db.Postgres
Sitko.Core is a set of libraries to help build .NET Core applications fast |
|
|
Honeycomb.OpenTelemetry.CommonInstrumentations
Honeycomb's OpenTelemetry common instrumentations package. Adds support for many common instrumentation libraries for you. |
|
|
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL
An Azure Database for PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry. |
Showing the top 19 popular GitHub repositories that depend on Npgsql.OpenTelemetry:
| Repository | Stars |
|---|---|
|
fullstackhero/dotnet-starter-kit
Production Grade Cloud-Ready .NET 10 Starter Kit (Web API + React Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
|
|
|
microsoft/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
|
|
|
ChilliCream/graphql-platform
Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Nitro the awesome Monaco based GraphQL IDE.
|
|
|
oskardudycz/EventSourcing.NetCore
Examples and Tutorials of Event Sourcing in .NET
|
|
|
Squidex/squidex
Headless CMS and Content Managment Hub
|
|
|
dotnetcore/AgileConfig
基于.NET Core开发的轻量级分布式配置中心 / .NET Core lightweight configuration server
|
|
|
GZTimeWalker/GZCTF
The GZ::CTF project, an open source CTF platform.
|
|
|
meysamhadeli/booking-microservices
A practical microservices with the latest technologies and architectures like Vertical Slice Architecture, Event Sourcing, CQRS, DDD, gRpc, MongoDB, RabbitMq, Masstransit, and Aspire in .Net 10.
|
|
|
mehdihadeli/food-delivery-microservices
🍔 A practical and cloud-native food delivery microservices, built with .Net Aspire, .Net 9, MassTransit, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
|
|
|
meysamhadeli/booking-modular-monolith
A practical Modular Monolith architecture with the latest technologies and architecture like Vertical Slice Architecture, Event Driven Architecture, CQRS, DDD, gRpc, Masstransit, and Aspire in .Net 10.
|
|
|
Eventuous/eventuous
Event Sourcing library for .NET
|
|
|
falberthen/EcommerceDDD
Experimental full-stack application showcasing Domain-Driven Design, Microservices, Event Sourcing, CQRS and Angular.
|
|
|
mehdihadeli/vertical-slice-api-template
🍰 An asp.net core template based on .Net 9, Vertical Slice Architecture, CQRS, Minimal APIs, OpenTelemetry, API Versioning and OpenAPI.
|
|
|
ZaqueuCavalcante/syki
Full Education Management System.
|
|
|
Universalis-FFXIV/Universalis
A crowdsourced market board API for FFXIV.
|
|
|
ActualLab/Fusion
Build real-time Blazor and MAUI apps while writing just 0.1% of the usual real-time update code. Handle 10× more API requests with the ActualLab.Rpc protocol—or 1000× more with Fusion’s transparent and perfectly coherent caching.
|
|
|
sitkoru/Sitko.Core
Sitko.Core is a set of libraries to help build .NET Core applications fast
|
|
|
Letterbook/Letterbook
Sustainable federated social media built for open correspondence
|
|
|
youssefbennour/AspNetCore.Starter
A modular-monolith ASP.NET Core starter inspired by Evolutionary-architecture
|
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.3 | 203,655 | 5/27/2026 |
| 10.0.2 | 1,994,584 | 3/12/2026 |
| 10.0.1 | 2,551,627 | 12/19/2025 |
| 10.0.0 | 1,660,883 | 11/22/2025 |
| 10.0.0-rc.1 | 30,306 | 10/5/2025 |
| 9.0.5 | 142,666 | 3/12/2026 |
| 9.0.4 | 2,219,703 | 10/5/2025 |
| 9.0.3 | 7,572,827 | 2/24/2025 |
| 9.0.2 | 2,062,115 | 12/7/2024 |
| 9.0.1 | 316,265 | 11/19/2024 |
| 9.0.0 | 108,059 | 11/18/2024 |
| 8.0.9 | 64,023 | 3/12/2026 |
| 8.0.8 | 784,495 | 10/5/2025 |
| 8.0.7 | 1,045,033 | 2/24/2025 |
| 8.0.6 | 1,610,919 | 11/18/2024 |
| 8.0.5 | 1,960,891 | 10/13/2024 |
| 7.0.10 | 121,865 | 3/17/2025 |
| 7.0.9 | 360,893 | 11/18/2024 |
| 6.0.13 | 975,953 | 11/18/2024 |
| 6.0.12 | 115,804 | 9/10/2024 |