Sha256: 7d413749e16fedc86f223b094c2a6240c2992abcbc8785421995a84595bc9529
Contents?: true
Size: 575 Bytes
Versions: 1
Compression:
Stored size: 575 Bytes
Contents
# frozen_string_literal: true require_relative 'ldclient-otel/tracing_hook' require_relative 'ldclient-otel/version' require 'logger' module LaunchDarkly # # Namespace for the LaunchDarkly Otel SDK. # module Otel # # @return [Logger] the Rails logger if in Rails, or a default Logger at WARN level otherwise # def self.default_logger if defined?(Rails) && Rails.respond_to?(:logger) && Rails.logger Rails.logger else log = ::Logger.new($stdout) log.level = ::Logger::WARN log end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
launchdarkly-server-sdk-otel-1.0.0 | lib/ldclient-otel.rb |