Class: Datadog::Contrib::Mysql2::Integration
- Inherits:
-
Object
- Object
- Datadog::Contrib::Mysql2::Integration
- Includes:
- Integration
- Defined in:
- lib/ddtrace/contrib/mysql2/integration.rb
Overview
Description of Mysql2 integration
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Integration
Class Method Details
.present? ⇒ Boolean
18 19 20 |
# File 'lib/ddtrace/contrib/mysql2/integration.rb', line 18 def self.present? super && defined?(::Mysql2) end |
.version ⇒ Object
14 15 16 |
# File 'lib/ddtrace/contrib/mysql2/integration.rb', line 14 def self.version Gem.loaded_specs['mysql2'] && Gem.loaded_specs['mysql2'].version end |
Instance Method Details
#default_configuration ⇒ Object
22 23 24 |
# File 'lib/ddtrace/contrib/mysql2/integration.rb', line 22 def default_configuration Configuration::Settings.new end |
#patcher ⇒ Object
26 27 28 |
# File 'lib/ddtrace/contrib/mysql2/integration.rb', line 26 def patcher Patcher end |