EOL

Since I don't use MassTransit anymore (and don't have access to a Datadog API key as well), this package won't receive any new features or code maintenance. As per the license, your are free to copy it and improve it on your own.

Banner

Datadog Trace MassTransit

GitHub Actions Status

Datadog.Trace.MassTransit NuGet Package Downloads

GitHub Actions Build History

Adds MassTransit instrumentation to Datadog APM

Usage

Dependency injection

Add it to your MassTransit broker configuration with the UseDatadogTracePropagationFilters() extension method:

services.AddMassTransit(x =>
{
    x.UsingAzureServiceBus((context, cfg) =>
    {
        cfg.UseDatadogTracePropagationFilters();
    });
});

Important ❗

This library is currently using the Datadog.Tracer version 2.17.0, so if you're doing automatic and custom instrumentation, make sure to have the same version of the Datadog Tracer binary installed on your system, as mentioned by the documentation. Speaking of the Datadog APM documentation, I recommend reading it fully to avoid any gotchas.