RemyDuijkeren.OpenTelemetry.Instrumentation.DataverseServiceClient 0.9.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package RemyDuijkeren.OpenTelemetry.Instrumentation.DataverseServiceClient --version 0.9.0
NuGet\Install-Package RemyDuijkeren.OpenTelemetry.Instrumentation.DataverseServiceClient -Version 0.9.0
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="RemyDuijkeren.OpenTelemetry.Instrumentation.DataverseServiceClient" Version="0.9.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RemyDuijkeren.OpenTelemetry.Instrumentation.DataverseServiceClient --version 0.9.0
#r "nuget: RemyDuijkeren.OpenTelemetry.Instrumentation.DataverseServiceClient, 0.9.0"
#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 RemyDuijkeren.OpenTelemetry.Instrumentation.DataverseServiceClient as a Cake Addin
#addin nuget:?package=RemyDuijkeren.OpenTelemetry.Instrumentation.DataverseServiceClient&version=0.9.0

// Install RemyDuijkeren.OpenTelemetry.Instrumentation.DataverseServiceClient as a Cake Tool
#tool nuget:?package=RemyDuijkeren.OpenTelemetry.Instrumentation.DataverseServiceClient&version=0.9.0

Dataverse ServiceClient Instrumentation for OpenTelemetry .NET

CI NuGet NuGet

This is an Instrumentation Library, which instruments Dataverse ServiceClient and collect traces about incoming Dataverse requests.

This component is based on the v1.23 of database semantic conventions. For details on the default set of attributes that are added, checkout Traces sections below.

Getting Started

Step 1: Install Package

Add a reference to the RemyDuijkeren.OpenTelemetry.Instrumentation.DataverseServiceClient package. Also, add any other instrumentations & exporters you will need.

dotnet add package RemyDuijkeren.OpenTelemetry.Instrumentation.DataverseServiceClient

Step 2: Enable Dataverse ServiceClient Instrumentation at application startup

Dataverse ServiceClient instrumentation must be enabled at application startup. This is typically done in the ConfigureServices of your Startup class. Both examples below enables OpenTelemetry by calling AddOpenTelemetry() on IServiceCollection. This extension method requires adding the package OpenTelemetry.Extensions.Hosting to the application. This ensures instrumentations are disposed when the host is shutdown.

Traces

The following example demonstrates adding Dataverse ServiceClient instrumentation with the extension method WithTracing() on OpenTelemetryBuilder. then extension method AddDataverseServiceClientInstrumentation() on TracerProviderBuilder to the application. This example also sets up the Console Exporter, which requires adding the package OpenTelemetry.Exporter.Console to the application.

using Microsoft.Extensions.DependencyInjection;
using OpenTelemetry.Trace;

public void ConfigureServices(IServiceCollection services)
{
    services.AddOpenTelemetry()
        .WithTracing(builder => builder
            .AddDataverseServiceClientInstrumentation()
            .AddConsoleExporter());
}

Following list of attributes are added by default on activity. See db-spans for more details about each individual attribute:

  • db.operation
  • db.sql.table
  • db.statement
  • db.system
  • db.name
  • db.connection_string
  • db.user
  • db.dataverse.organization_id
  • db.dataverse.organization_version
  • db.dataverse.geo
  • error.type
  • server.address
  • server.port

References

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. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
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
1.0.0 114 3/9/2024
0.9.0 125 2/21/2024