Sha256: 34a5da8519ac3b747c59be8a06e3b8842ed3caa229785973ffdd04e21b02286a

Contents?: true

Size: 217 Bytes

Versions: 3

Compression:

Stored size: 217 Bytes

Contents

# frozen_string_literal: true

module Zipkin
  module Encoders
    class JsonEncoder
      module Timestamp
        def self.create(time)
          (time.to_f * 1_000_000).to_i
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zipkin-1.6.3 lib/zipkin/encoders/json_encoder/timestamp.rb
zipkin-1.6.2 lib/zipkin/encoders/json_encoder/timestamp.rb
zipkin-1.6.1 lib/zipkin/encoders/json_encoder/timestamp.rb