RabbitMQ.Client.OpenTelemetry
1.0.0-rc.1
dotnet add package RabbitMQ.Client.OpenTelemetry --version 1.0.0-rc.1
NuGet\Install-Package RabbitMQ.Client.OpenTelemetry -Version 1.0.0-rc.1
<PackageReference Include="RabbitMQ.Client.OpenTelemetry" Version="1.0.0-rc.1" />
<PackageVersion Include="RabbitMQ.Client.OpenTelemetry" Version="1.0.0-rc.1" />
<PackageReference Include="RabbitMQ.Client.OpenTelemetry" />
paket add RabbitMQ.Client.OpenTelemetry --version 1.0.0-rc.1
#r "nuget: RabbitMQ.Client.OpenTelemetry, 1.0.0-rc.1"
#addin nuget:?package=RabbitMQ.Client.OpenTelemetry&version=1.0.0-rc.1&prerelease
#tool nuget:?package=RabbitMQ.Client.OpenTelemetry&version=1.0.0-rc.1&prerelease
RabbitMQ .NET Client - OpenTelemetry Instrumentation
Introduction
This library makes it easy to instrument your RabbitMQ .NET Client applications with OpenTelemetry.
Examples
The following examples demonstrate how to use the RabbitMQ .NET Client OpenTelemetry Instrumentation.
Basic Usage
ASP.NET Core Configuration Example
using OpenTelemetry.Trace;
// Configure the OpenTelemetry SDK to trace ASP.NET Core, the RabbitMQ .NET Client and export the traces to the console.
// Also configures context propagation to propagate the TraceContext and Baggage using the W3C specification.
var compositeTextMapPropagator = new CompositeTextMapPropagator(new TextMapPropagator[]
{
new TraceContextPropagator(),
new BaggagePropagator()
});
Sdk.SetDefaultTextMapPropagator(compositeTextMapPropagator);
builder.Services.AddOpenTelemetry()
.ConfigureResource(resource => resource
.AddService(serviceName: builder.Environment.ApplicationName))
.WithTracing(tracing => tracing
.AddAspNetCoreInstrumentation()
.AddRabbitMQInstrumentation()
.AddConsoleExporter());
Console Application Configuration Example
using OpenTelemetry.Trace;
// Configure the OpenTelemetry SDK to trace ASP.NET Core, the RabbitMQ .NET Client and export the traces to the console.
// Also configures context propagation to propagate the TraceContext and Baggage using the W3C specification.
var compositeTextMapPropagator = new CompositeTextMapPropagator(new TextMapPropagator[]
{
new TraceContextPropagator(),
new BaggagePropagator()
});
Sdk.SetDefaultTextMapPropagator(compositeTextMapPropagator);
var tracerProvider = Sdk.CreateTracerProviderBuilder()
.AddRabbitMQInstrumentation()
.AddConsoleExporter()
.Build();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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. |
-
.NETStandard 2.0
- OpenTelemetry.Api (>= 1.7.0)
- RabbitMQ.Client (>= 7.0.0-rc.1)
-
net6.0
- OpenTelemetry.Api (>= 1.7.0)
- RabbitMQ.Client (>= 7.0.0-rc.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on RabbitMQ.Client.OpenTelemetry:
Package | Downloads |
---|---|
CodeDesignPlus.Net.Observability
CodeDesignPlus.Net.Observability provides a comprehensive framework for monitoring and observability in .NET Core applications. This library simplifies the process of collecting, analyzing, and visualizing application metrics and logs, enabling developers to build robust and maintainable observability solutions. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0-rc.1 | 85,774 | 6/4/2024 |