class Datadog::Contrib::SemanticLogger::Integration

Description of SemanticLogger integration

Constants

MINIMUM_VERSION

v4 had a migration to `named_tags` instead of `payload` and has been out for almost 5 years at this point it's probably reasonable to nudge users to using modern ruby libs

Public Class Methods

compatible?() click to toggle source
Calls superclass method
# File lib/ddtrace/contrib/semantic_logger/integration.rb, line 28
def self.compatible?
  super && version >= MINIMUM_VERSION
end
loaded?() click to toggle source
# File lib/ddtrace/contrib/semantic_logger/integration.rb, line 24
def self.loaded?
  !defined?(::SemanticLogger::Logger).nil?
end
version() click to toggle source
# 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

Public Instance Methods

auto_instrument?() click to toggle source

TODO: abstract out the log injection related instrumentation into it's own module so we dont keep having to do these workarounds

# File lib/ddtrace/contrib/semantic_logger/integration.rb, line 34
def auto_instrument?
  false
end
default_configuration() click to toggle source
# File lib/ddtrace/contrib/semantic_logger/integration.rb, line 38
def default_configuration
  Configuration::Settings.new
end
patcher() click to toggle source
# File lib/ddtrace/contrib/semantic_logger/integration.rb, line 42
def patcher
  Patcher
end