Sha256: 514981666a60483d5a6837574dc553e2d5c65a4669393a5732e0cda2d77ec7b7

Contents?: true

Size: 632 Bytes

Versions: 20

Compression:

Stored size: 632 Bytes

Contents

require 'ddtrace/transport/parcel'
require 'ddtrace/transport/request'

module Datadog
  module Transport
    module Traces
      # Data transfer object for trace data
      class Parcel
        include Transport::Parcel

        def count
          data.length
        end

        def encode_with(encoder)
          encoder.encode_traces(data)
        end
      end

      # Traces request
      class Request < Transport::Request
        def initialize(traces)
          super(Parcel.new(traces))
        end
      end

      # Traces response
      module Response
        attr_reader :service_rates
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
ls-trace-0.1.2 lib/ddtrace/transport/traces.rb
ddtrace-0.34.2 lib/ddtrace/transport/traces.rb
ddtrace-0.34.1 lib/ddtrace/transport/traces.rb
ddtrace-0.34.0 lib/ddtrace/transport/traces.rb
ddtrace-0.33.1 lib/ddtrace/transport/traces.rb
ddtrace-0.33.0 lib/ddtrace/transport/traces.rb
ddtrace-0.32.0 lib/ddtrace/transport/traces.rb
ddtrace-0.31.1 lib/ddtrace/transport/traces.rb
ddtrace-0.31.0 lib/ddtrace/transport/traces.rb
ddtrace-0.30.1 lib/ddtrace/transport/traces.rb
ddtrace-0.30.0 lib/ddtrace/transport/traces.rb
ddtrace-0.29.1 lib/ddtrace/transport/traces.rb
ddtrace-0.26.1 lib/ddtrace/transport/traces.rb
ls-trace-0.1.1 lib/ddtrace/transport/traces.rb
ddtrace-0.29.0 lib/ddtrace/transport/traces.rb
ddtrace-0.28.0 lib/ddtrace/transport/traces.rb
ddtrace-0.27.0 lib/ddtrace/transport/traces.rb
ddtrace-0.26.0 lib/ddtrace/transport/traces.rb
ddtrace-0.25.1 lib/ddtrace/transport/traces.rb
ddtrace-0.25.0 lib/ddtrace/transport/traces.rb