Sha256: a55ae0ab6fad59e1213c0b121ee0f75a7f754e97aafb9ed17444906284d1f70f
Contents?: true
Size: 791 Bytes
Versions: 1
Compression:
Stored size: 791 Bytes
Contents
# frozen_string_literal: true # Copyright The OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 module OpenTelemetry module Instrumentation module Mysql2 # The Instrumentation class contains logic to detect and install the Mysql2 # instrumentation class Instrumentation < OpenTelemetry::Instrumentation::Base install do |_config| require_dependencies patch_client end present do defined?(::Mysql2) end option :peer_service, default: nil, validate: :string private def require_dependencies require_relative 'patches/client' end def patch_client ::Mysql2::Client.prepend(Patches::Client) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opentelemetry-instrumentation-mysql2-0.15.0 | lib/opentelemetry/instrumentation/mysql2/instrumentation.rb |