Npgsql.OpenTelemetry 7.0.0-preview.5

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

// Install Npgsql.OpenTelemetry as a Cake Tool
#tool nuget:?package=Npgsql.OpenTelemetry&version=7.0.0-preview.5&prerelease

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

NuGet packages (15)

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

Package Downloads
CyberEye.Constant.Lib

Package chứa các constant và enum

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.

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

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

Aspire.Npgsql.EntityFrameworkCore.PostgreSQL The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.

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.

GitHub repositories (3)

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

Repository Stars
oskardudycz/EventSourcing.NetCore
Examples and Tutorials of Event Sourcing in .NET
dotnet/aspire
An opinionated, cloud ready stack for building observable, production ready, distributed applications in .NET
Universalis-FFXIV/Universalis
A crowdsourced market board API for FFXIV.
Version Downloads Last updated
8.0.2 160,639 2/10/2024
8.0.1 185,841 12/4/2023
8.0.0 70,716 11/21/2023
8.0.0-rtm 91 11/20/2023
8.0.0-rc.2 16,658 10/11/2023
8.0.0-preview.4 27,844 5/17/2023
8.0.0-preview.3 2,319 4/24/2023
8.0.0-preview.2 6,711 3/20/2023
8.0.0-preview.1 2,808 3/3/2023
7.0.6 460,846 9/14/2023
7.0.4 652,546 4/24/2023
7.0.2 896,502 2/15/2023
7.0.1 211,919 12/17/2022
7.0.0 138,177 11/9/2022
7.0.0-rc.2 10,036 10/11/2022
7.0.0-rc.1 4,724 9/16/2022
7.0.0-preview.7 1,472 8/9/2022
7.0.0-preview.6 10,877 7/13/2022
7.0.0-preview.5 2,448 6/19/2022
7.0.0-preview.4 7,546 5/11/2022
7.0.0-preview.3 19,846 4/19/2022
7.0.0-preview.2 4,166 3/16/2022
7.0.0-preview.1 715 2/17/2022
6.0.10 66,202 9/14/2023
6.0.9 337,885 2/15/2023
6.0.8 113,058 12/17/2022
6.0.7 699,069 9/16/2022
6.0.6 216,194 8/4/2022
6.0.5 331,635 6/19/2022
6.0.4 319,611 4/19/2022
6.0.3 451,820 1/27/2022
6.0.2 21,575 12/20/2021
6.0.1 5,682 12/3/2021
6.0.0 110,925 11/9/2021
6.0.0-rc.2 1,617 10/14/2021