Module: OpenTelemetry::Instrumentation::Net::LDAP::Patches::Instrumentation

Defined in:
lib/opentelemetry/instrumentation/net/ldap/patches/instrumentation.rb

Overview

Module to prepend to Net::LDAP for instrumentation

Instance Method Summary collapse

Instance Method Details

#initialize(args = {}) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/opentelemetry/instrumentation/net/ldap/patches/instrumentation.rb', line 14

def initialize(args = {})
  super

  @instrumentation_service = args[:instrumentation_service] || OpenTelemetry::Instrumentation::Net::LDAP::InstrumentationService.new({
                                                                                                                                       host: @host,
                                                                                                                                       port: @port,
                                                                                                                                       hosts: @hosts,
                                                                                                                                       auth: @auth,
                                                                                                                                       base: @base,
                                                                                                                                       encryption: @encryption
                                                                                                                                     })
end