Sha256: 012a259649a4a05e0861997abf5672e31d558b1532d458a75edc17e084833de6
Contents?: true
Size: 442 Bytes
Versions: 2
Compression:
Stored size: 442 Bytes
Contents
# A fork of the original ruby client, that supports tagging: require 'datadog/statsd' module NdrStats # Contains configuration/setup logic module Config def configure(host:, port:, system: nil, stack: nil) tags = { system: system, stack: stack }.reject { |_key, value| value.nil? } NdrStats.adaptor = Datadog::Statsd.new(host, port, tags: tags) end def configured? !NdrStats.adaptor.nil? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ndr_stats-0.2.2 | lib/ndr_stats/config.rb |
ndr_stats-0.2.1 | lib/ndr_stats/config.rb |