public static void UseDiagnosticsActivity(this IBusFactoryConfigurator configurator, DiagnosticSource diagnosticSource, string activityIdKey = DiagnosticHeaders.ActivityIdHeader, string activityCorrelationContextKey = DiagnosticHeaders.ActivityCorrelationContext) { configurator.ConfigureSend(x => x.ConnectSendPipeSpecificationObserver(new ActivitySendPipeSpecificationObserver(diagnosticSource, activityIdKey, activityCorrelationContextKey))); configurator.ConfigurePublish(x => x.ConnectPublishPipeSpecificationObserver(new ActivityPublishPipeSpecificationObserver(diagnosticSource, activityIdKey, activityCorrelationContextKey))); var observer = new ActivityConsumePipeSpecificationObserver(configurator, diagnosticSource, activityIdKey, activityCorrelationContextKey); }
public static void PropagateOpenTracingContext(this IBusFactoryConfigurator value) { value.ConfigurePublish(c => c.AddPipeSpecification(new OpenTracingPipeSpecification())); value.AddPipeSpecification(new OpenTracingPipeSpecification()); }
public static void UseProviderProfile(this IBusFactoryConfigurator value, ProviderProfile providerProfile) { value.ConfigurePublish(configurator => configurator.AddPipeSpecification(new ProviderProfilePipeSpecification(providerProfile))); }
public static void UseDiagnosticsActivity(this IBusFactoryConfigurator configurator, DiagnosticSource diagnosticSource) { configurator.ConfigureSend(cfg => cfg.AddPipeSpecification(new DiagnosticsActivityPipeSpecification(diagnosticSource))); configurator.ConfigurePublish(cfg => cfg.AddPipeSpecification(new DiagnosticsActivityPipeSpecification(diagnosticSource))); configurator.AddPipeSpecification(new DiagnosticsActivityPipeSpecification(diagnosticSource)); }
public static void PropagateActivityTracingContext(this IBusFactoryConfigurator value) { value.ConfigurePublish(configurator => configurator.AddPipeSpecification(new ActivityTracingPipeSpecification())); value.ConfigureSend(configurator => configurator.AddPipeSpecification(new ActivityTracingPipeSpecification())); value.AddPipeSpecification(new ActivityTracingPipeSpecification()); }