diff --git a/src/MassTransit/Configuration/DependencyInjection/DependencyInjectionRegistrationExtensions.cs b/src/MassTransit/Configuration/DependencyInjection/DependencyInjectionRegistrationExtensions.cs index 4b57a612998..98fd6fe7b95 100644 --- a/src/MassTransit/Configuration/DependencyInjection/DependencyInjectionRegistrationExtensions.cs +++ b/src/MassTransit/Configuration/DependencyInjection/DependencyInjectionRegistrationExtensions.cs @@ -60,6 +60,8 @@ public static IServiceCollection AddMediator(this IServiceCollection collection, configure?.Invoke(configurator); + AddInstrumentation(collection); + configurator.Complete(); return collection;