Sha256: 248268455c7987244b7df50d3cd3137262662bcdde1446e67b18caeed7960eab
Contents?: true
Size: 822 Bytes
Versions: 2
Compression:
Stored size: 822 Bytes
Contents
require 'json' require 'benchmark' require 'concurrent/array' require 'concurrent/hash' require 'aws-embedded-metrics-customink/version' require 'aws-embedded-metrics-customink/sinks' require 'aws-embedded-metrics-customink/config' require 'aws-embedded-metrics-customink/logger' require 'aws-embedded-metrics-customink/instance' if defined?(Rails) module Aws module Embedded module Metrics def config Config.config end def configure Config.configure { |c| yield(c) } end def reconfigure Config.reconfigure { |c| yield(c) if block_given? } end def logger Logger.new.tap do |l| l.metrics { |m| yield(m) } if block_given? end end module_function :config, :configure, :reconfigure, :logger end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aws-embedded-metrics-customink-0.6.0 | lib/aws-embedded-metrics-customink.rb |
aws-embedded-metrics-customink-0.5.0 | lib/aws-embedded-metrics-customink.rb |