Npgsql.OpenTelemetry 6.0.4 The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved

.NET Standard 2.0
There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package Npgsql.OpenTelemetry -Version 6.0.4
dotnet add package Npgsql.OpenTelemetry --version 6.0.4
<PackageReference Include="Npgsql.OpenTelemetry" Version="6.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Npgsql.OpenTelemetry --version 6.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Npgsql.OpenTelemetry, 6.0.4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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=6.0.4

// Install Npgsql.OpenTelemetry as a Cake Tool
#tool nuget:?package=Npgsql.OpenTelemetry&version=6.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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()
    .SetSampler(new AlwaysOnSampler())
    // This optional activates tracing for your application, if you trace your own activities:
    // This activates up Npgsql's tracing:
    // This prints tracing data to the console:

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
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

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
7.0.0-preview.4 81 5/11/2022
7.0.0-preview.3 1,988 4/19/2022
7.0.0-preview.2 874 3/16/2022
7.0.0-preview.1 479 2/17/2022
6.0.4 20,708 4/19/2022
6.0.3 53,136 1/27/2022
6.0.2 11,440 12/20/2021
6.0.1 1,489 12/3/2021
6.0.0 31,013 11/9/2021
6.0.0-rc.2 1,492 10/14/2021