/// <summary>
        /// Initializes a new instance of the <see cref="ElasticsearchClientInstrumentation"/> class.
        /// </summary>
        /// <param name="activitySource">ActivitySource adapter instance.</param>
        /// <param name="options">Configuration options for Elasticsearch client instrumentation.</param>
        public ElasticsearchClientInstrumentation(ActivitySourceAdapter activitySource, ElasticsearchClientInstrumentationOptions options)
        {
            if (activitySource == null)
            {
                throw new ArgumentNullException(nameof(activitySource));
            }

            this.diagnosticSourceSubscriber = new DiagnosticSourceSubscriber(new ElasticsearchRequestPipelineDiagnosticListener(activitySource, options), null);
            this.diagnosticSourceSubscriber.Subscribe();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ElasticsearchClientInstrumentation"/> class.
 /// </summary>
 /// <param name="options">Configuration options for Elasticsearch client instrumentation.</param>
 public ElasticsearchClientInstrumentation(ElasticsearchClientInstrumentationOptions options)
 {
     this.diagnosticSourceSubscriber = new DiagnosticSourceSubscriber(new ElasticsearchRequestPipelineDiagnosticListener(options), null);
     this.diagnosticSourceSubscriber.Subscribe();
 }