RemyDuijkeren.OpenTelemetry.Instrumentation.DataverseServiceClient
0.9.0
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
<PackageReference Include="RemyDuijkeren.OpenTelemetry.Instrumentation.DataverseServiceClient" Version="0.9.0" />
paket add RemyDuijkeren.OpenTelemetry.Instrumentation.DataverseServiceClient --version 0.9.0
#r "nuget: RemyDuijkeren.OpenTelemetry.Instrumentation.DataverseServiceClient, 0.9.0"
// 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
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 | Versions 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. |
-
.NETFramework 4.6.2
- Microsoft.PowerPlatform.Dataverse.Client (>= 1.1.17)
- OpenTelemetry (>= 1.7.0)
-
.NETFramework 4.7.2
- Microsoft.PowerPlatform.Dataverse.Client (>= 1.1.17)
- OpenTelemetry (>= 1.7.0)
-
.NETFramework 4.8
- Microsoft.PowerPlatform.Dataverse.Client (>= 1.1.17)
- OpenTelemetry (>= 1.7.0)
-
net6.0
- Microsoft.PowerPlatform.Dataverse.Client (>= 1.1.17)
- OpenTelemetry (>= 1.7.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.