Sha256: 68fb7bb1565bd3cdffd247915ddd7f356c68435ec62fe5809b21e097119361c4

Contents?: true

Size: 414 Bytes

Versions: 3

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true

module ElasticAPM
  # @api private
  module Util
    def self.nearest_minute(target = Time.now.utc)
      target - target.to_i % 60
    end

    def self.micros(target = Time.now.utc)
      target.to_i * 1_000_000 + target.usec
    end

    def self.inspect_transaction(transaction)
      Inspector.new.transaction transaction
    end
  end
end

require 'elastic_apm/util/inspector'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
elastic-apm-0.3.0 lib/elastic_apm/util.rb
elastic-apm-0.2.0 lib/elastic_apm/util.rb
elastic-apm-0.1.0 lib/elastic_apm/util.rb