Class: Datadog::Contrib::SemanticLogger::Integration
- Inherits:
-
Object
- Object
- Datadog::Contrib::SemanticLogger::Integration
- Includes:
- Integration
- Defined in:
- lib/ddtrace/contrib/semantic_logger/integration.rb
Overview
Description of SemanticLogger integration
Constant Summary collapse
- MINIMUM_VERSION =
v4 had a migration to
named_tags
instead ofpayload
and has been out for almost 5 years at this point it's probably reasonable to nudge users to using modern ruby libs Gem::Version.new('4.0.0')
Class Method Summary collapse
Instance Method Summary collapse
-
#auto_instrument? ⇒ Boolean
TODO: abstract out the log injection related instrumentation into it's own module so we dont keep having to do these workarounds.
- #default_configuration ⇒ Object
- #patcher ⇒ Object
Methods included from Integration
Class Method Details
.compatible? ⇒ Boolean
28 29 30 |
# File 'lib/ddtrace/contrib/semantic_logger/integration.rb', line 28 def self.compatible? super && version >= MINIMUM_VERSION end |
.loaded? ⇒ Boolean
24 25 26 |
# File 'lib/ddtrace/contrib/semantic_logger/integration.rb', line 24 def self.loaded? !defined?(::SemanticLogger::Logger).nil? end |
.version ⇒ Object
20 21 22 |
# File 'lib/ddtrace/contrib/semantic_logger/integration.rb', line 20 def self.version Gem.loaded_specs['semantic_logger'] && Gem.loaded_specs['semantic_logger'].version end |
Instance Method Details
#auto_instrument? ⇒ Boolean
TODO: abstract out the log injection related instrumentation into it's own module so we dont keep having to do these workarounds
34 35 36 |
# File 'lib/ddtrace/contrib/semantic_logger/integration.rb', line 34 def auto_instrument? false end |
#default_configuration ⇒ Object
38 39 40 |
# File 'lib/ddtrace/contrib/semantic_logger/integration.rb', line 38 def default_configuration Configuration::Settings.new end |
#patcher ⇒ Object
42 43 44 |
# File 'lib/ddtrace/contrib/semantic_logger/integration.rb', line 42 def patcher Patcher end |