JF91.OpenTelemetry
1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package JF91.OpenTelemetry --version 1.0.1
NuGet\Install-Package JF91.OpenTelemetry -Version 1.0.1
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="JF91.OpenTelemetry" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JF91.OpenTelemetry --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: JF91.OpenTelemetry, 1.0.1"
#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 JF91.OpenTelemetry as a Cake Addin #addin nuget:?package=JF91.OpenTelemetry&version=1.0.1 // Install JF91.OpenTelemetry as a Cake Tool #tool nuget:?package=JF91.OpenTelemetry&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Use this package to integrate OpenTelemetry into your ASP.NET Web API using appsettings.json
<br>
Follow these steps to get it done:
1: Install Nuget Package
dotnet add package JF91.OpenTelemetry --version 1.0.0
<br>
2: Add this after var builder = WebApplication.CreateBuilder(args);
builder.Services.AddOpenTelemetryServices(builder.Configuration);
<br>
3: Add this before app.Run();
app.AddOpenTelemetryExtensions();
<br>
4: Add this to your appsettings.json
and modify it to your needs:
"OpenTelemetrySettings": {
"EnableTraces": true,
"EnableMetrics": true,
"Exporters": {
"Console": {
"Enabled": true
},
"Jaeger": {
"Enabled": true,
"Endpoint": "http://localhost:14268/api/traces",
"Protocol": "udp"
},
"Zipkin": {
"Enabled": false,
"Endpoint": " https://localhost:9411/api/v2/spans"
},
"Prometheus": {
"Enabled": true,
"ScrapeEndpointPath": "/metrics-text",
"ScrapeResponseCacheDurationMilliseconds": 300
},
"InfluxDB": {
"Enabled": false,
"Url": "http://localhost:8086",
"Protocol": "http"
}
},
"Instrumentation": {
"Http": true,
"EfCore": false,
"Hangfire": false,
"SqlClient": false,
"Redis": false
}
}
Properties Values:
Jaeger.Protocol: udp / http | Default ⇒ udp
[OtlpProtocols] > InfluxDB.Protocol: grpc / http | Default ⇒ grpc
Reference: https://opentelemetry.io/docs/instrumentation/net/exporters/
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- OpenTelemetry.Exporter.Console (>= 1.5.1)
- OpenTelemetry.Exporter.InfluxDB (>= 1.0.0-alpha.2)
- OpenTelemetry.Exporter.Jaeger (>= 1.5.1)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.5.1)
- OpenTelemetry.Exporter.Prometheus.AspNetCore (>= 1.5.0-rc.1)
- OpenTelemetry.Exporter.Zipkin (>= 1.5.1)
- OpenTelemetry.Extensions.Hosting (>= 1.5.1)
- OpenTelemetry.Instrumentation.AspNetCore (>= 1.5.0-beta.1)
- OpenTelemetry.Instrumentation.EntityFrameworkCore (>= 1.0.0-beta.7)
- OpenTelemetry.Instrumentation.Hangfire (>= 1.5.0-beta.1)
- OpenTelemetry.Instrumentation.Http (>= 1.5.0-beta.1)
- OpenTelemetry.Instrumentation.Runtime (>= 1.5.0)
- OpenTelemetry.Instrumentation.SqlClient (>= 1.5.0-beta.1)
- OpenTelemetry.Instrumentation.StackExchangeRedis (>= 1.0.0-rc9.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.