Rebus.OpenTelemetry 1.0.0-alpha03

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

// Install Rebus.OpenTelemetry as a Cake Tool
#tool nuget:?package=Rebus.OpenTelemetry&version=1.0.0-alpha03&prerelease                

Rebus.OpenTelemetry

Makes Rebus emit Diagnostic traces, which OpenTelemetry can be used to generate tracing.

Usage

Add the packages:

Rebus.Diagnostics
Rebus.OpenTelemetry

When configuring Rebus call EnableDiagnosticSources like this:

using var publisherActivator = new BuiltinHandlerActivator();

var bus = Configure.With(publisherActivator)
    .Transport(t => t.UseInMemoryTransport(new InMemNetwork(), "Messages"))
    .Options(o => o.EnableDiagnosticSources()) // This is the important line
    .Start();

Then add Rebus tracing to your OpenTelemetry calls, by doing AddRebusInstrumentation:

var tracerProvider = Sdk.CreateTracerProviderBuilder()
                .AddRebusInstrumentation()
                .Build()

And then everything should just work. 🙂

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

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.1 83,181 7/18/2024
1.0.0 216,642 11/15/2023
1.0.0-alpha03 3,179 4/6/2023
1.0.0-alpha02 138 4/6/2023
1.0.0-alpha01 148 3/29/2023
0.0.5 172,343 2/10/2023
0.0.4 217,917 11/27/2021
0.0.3 5,310 7/25/2021
0.0.2 6,063 2/25/2021
0.0.1 468 2/21/2021