Npgsql.OpenTelemetry 7.0.2

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
.NET Standard 2.0
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Npgsql.OpenTelemetry --version 7.0.2
NuGet\Install-Package Npgsql.OpenTelemetry -Version 7.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="7.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Npgsql.OpenTelemetry --version 7.0.2
#r "nuget: Npgsql.OpenTelemetry, 7.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=7.0.2

// Install Npgsql.OpenTelemetry as a Cake Tool
#tool nuget:?package=Npgsql.OpenTelemetry&version=7.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 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 net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.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 net481
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 (4)

Showing the top 4 NuGet packages that depend on Npgsql.OpenTelemetry:

Package Downloads
ShtrihM.Wattle3.OpenTelemetry

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

Honeycomb.OpenTelemetry.AutoInstrumentations The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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

A55.Signoz.AspNetCore

Simplify opentelemetry configuration in ASP.NET Core

Honeycomb.OpenTelemetry.CommonInstrumentations The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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

GitHub repositories (2)

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

Repository Stars
oskardudycz/EventSourcing.NetCore
Examples and Tutorials of Event Sourcing in .NET
Universalis-FFXIV/Universalis
A crowdsourced market board API for FFXIV.
Version Downloads Last updated
8.0.0-preview.2 55 3/20/2023
8.0.0-preview.1 848 3/3/2023
7.0.2 56,254 2/15/2023
7.0.1 100,704 12/17/2022
7.0.0 55,370 11/9/2022
7.0.0-rc.2 5,738 10/11/2022
7.0.0-rc.1 3,285 9/16/2022
7.0.0-preview.7 1,216 8/9/2022
7.0.0-preview.6 10,340 7/13/2022
7.0.0-preview.5 719 6/19/2022
7.0.0-preview.4 7,034 5/11/2022
7.0.0-preview.3 17,023 4/19/2022
7.0.0-preview.2 2,742 3/16/2022
7.0.0-preview.1 614 2/17/2022
6.0.9 9,174 2/15/2023
6.0.8 20,305 12/17/2022
6.0.7 393,330 9/16/2022
6.0.6 147,864 8/4/2022
6.0.5 169,382 6/19/2022
6.0.4 185,728 4/19/2022
6.0.3 403,657 1/27/2022
6.0.2 15,745 12/20/2021
6.0.1 4,267 12/3/2021
6.0.0 68,507 11/9/2021
6.0.0-rc.2 1,559 10/14/2021