Sha256: a7213162fb3132ff658f875567c8526229babdf1c091204dbdf8b3fa1795be39

Contents?: true

Size: 406 Bytes

Versions: 1

Compression:

Stored size: 406 Bytes

Contents

ENV['RACK_ENV'] ||= 'test'
require 'sidekiq-datadog'
require 'timecop'

module Mock
  class Worker; end # rubocop:disable Lint/EmptyClass

  class Statsd < ::Datadog::Statsd
    def send_stats(stat, delta, type, opts = EMPTY_OPTIONS)
      full_stat = serializer.to_stat(stat, delta, type, tags: opts[:tags])
      messages.push full_stat
    end

    def messages
      @messages ||= []
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-datadog-0.6.0 spec/spec_helper.rb