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.
Adds MassTransit instrumentation to Datadog APM
Add it to your MassTransit broker configuration with the UseDatadogTracePropagationFilters()
extension method:
services.AddMassTransit(x =>
{
x.UsingAzureServiceBus((context, cfg) =>
{
cfg.UseDatadogTracePropagationFilters();
});
});
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.