/// <summary>
        /// Initializes a new instance of the <see cref="MassTransitInstrumentation"/> class.
        /// </summary>
        /// <param name="activitySource">ActivitySource adapter instance.</param>
        /// <param name="options">Instrumentation options.</param>
        public MassTransitInstrumentation(ActivitySourceAdapter activitySource, MassTransitInstrumentationOptions options)
        {
            var diagnosticListener = new MassTransitDiagnosticListener(activitySource, options);

            this.diagnosticSourceSubscriber = new DiagnosticSourceSubscriber(diagnosticListener, null);
            this.diagnosticSourceSubscriber.Subscribe();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="MassTransitInstrumentation"/> class.
 /// </summary>
 /// <param name="options">Instrumentation options.</param>
 public MassTransitInstrumentation(MassTransitInstrumentationOptions options)
 {
     this.diagnosticSourceSubscriber = new DiagnosticSourceSubscriber(
         name => new MassTransitDiagnosticListener(name, options),
         listener => listener.Name == MassTransitDiagnosticListenerName,
         null);
     this.diagnosticSourceSubscriber.Subscribe();
 }