Npgsql.OpenTelemetry 9.0.2

Prefix Reserved
dotnet add package Npgsql.OpenTelemetry --version 9.0.2                
NuGet\Install-Package Npgsql.OpenTelemetry -Version 9.0.2                
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="Npgsql.OpenTelemetry" Version="9.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Npgsql.OpenTelemetry --version 9.0.2                
#r "nuget: Npgsql.OpenTelemetry, 9.0.2"                
#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.
// Install Npgsql.OpenTelemetry as a Cake Addin
#addin nuget:?package=Npgsql.OpenTelemetry&version=9.0.2

// Install Npgsql.OpenTelemetry as a Cake Tool
#tool nuget:?package=Npgsql.OpenTelemetry&version=9.0.2                

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 Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (33)

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.

Honeycomb.OpenTelemetry.CommonInstrumentations

Honeycomb's OpenTelemetry common instrumentations package. Adds support for many common instrumentation libraries for you.

Aspire.Npgsql

A PostgreSQL® client that integrates with Aspire, including health checks, metrics, logging, and telemetry.

ShtrihM.Wattle3.OpenTelemetry

Framework for creating high-performance servers with domain object models.

Packs.Template.BaseApi

Basis for any Packs API

GitHub repositories (8)

Showing the top 5 popular GitHub repositories that depend on Npgsql.OpenTelemetry:

Repository Stars
dotnet/aspire
Tools, templates, and packages to accelerate building observable, production-ready apps
oskardudycz/EventSourcing.NetCore
Examples and Tutorials of Event Sourcing in .NET
dotnetcore/AgileConfig
基于.NET Core开发的轻量级分布式配置中心 / .NET Core lightweight configuration server
GZTimeWalker/GZCTF
The GZ::CTF project, an open source CTF platform.
dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK from source
Version Downloads Last updated
9.0.2 62,439 12/7/2024
9.0.1 66,772 11/19/2024
9.0.0 3,532 11/18/2024
8.0.6 88,041 11/18/2024
8.0.5 466,327 10/13/2024
8.0.4 403,426 9/10/2024
8.0.3 1,975,181 5/9/2024
8.0.2 891,005 2/10/2024
8.0.1 309,797 12/4/2023
8.0.0 100,429 11/21/2023
8.0.0-rtm 148 11/20/2023
8.0.0-rc.2 22,110 10/11/2023
8.0.0-preview.4 30,741 5/17/2023
8.0.0-preview.3 3,397 4/24/2023
8.0.0-preview.2 10,444 3/20/2023
8.0.0-preview.1 3,545 3/3/2023
7.0.9 4,089 11/18/2024
7.0.8 16,936 9/10/2024
7.0.7 70,350 5/9/2024
7.0.6 697,797 9/14/2023
7.0.4 852,982 4/24/2023
7.0.2 1,244,779 2/15/2023
7.0.1 264,715 12/17/2022
7.0.0 191,698 11/9/2022
7.0.0-rc.2 13,448 10/11/2022
7.0.0-rc.1 5,130 9/16/2022
7.0.0-preview.7 1,671 8/9/2022
7.0.0-preview.6 11,636 7/13/2022
7.0.0-preview.5 2,569 6/19/2022
7.0.0-preview.4 8,023 5/11/2022
7.0.0-preview.3 20,178 4/19/2022
7.0.0-preview.2 4,208 3/16/2022
7.0.0-preview.1 760 2/17/2022
6.0.13 2,534 11/18/2024
6.0.12 4,905 9/10/2024
6.0.11 71,834 5/9/2024
6.0.10 124,541 9/14/2023
6.0.9 801,923 2/15/2023
6.0.8 171,442 12/17/2022
6.0.7 1,000,761 9/16/2022
6.0.6 222,728 8/4/2022
6.0.5 367,247 6/19/2022
6.0.4 343,894 4/19/2022
6.0.3 472,622 1/27/2022
6.0.2 24,439 12/20/2021
6.0.1 11,182 12/3/2021
6.0.0 204,169 11/9/2021
6.0.0-rc.2 1,656 10/14/2021