lib/opentelemetry/instrumentation/trilogy/patches/client.rb in opentelemetry-instrumentation-trilogy-0.50.0 vs lib/opentelemetry/instrumentation/trilogy/patches/client.rb in opentelemetry-instrumentation-trilogy-0.50.1
- old
+ new
@@ -46,11 +46,11 @@
multi_line_comments
].freeze
FULL_SQL_REGEXP = Regexp.union(MYSQL_COMPONENTS.map { |component| COMPONENTS_REGEX_MAP[component] })
- def initialize(**kwargs)
- @_otel_net_peer_name = kwargs[:host]
+ def initialize(args)
+ @_otel_net_peer_name = args[:host]
super
end
def query(sql)
tracer.in_span(