Sha256: 90132d6ee6c29b3434b26f596351b098590693d4af62aa44cf48334929296276

Contents?: true

Size: 625 Bytes

Versions: 14

Compression:

Stored size: 625 Bytes

Contents

require 'ddtrace/encoding'
require 'ddtrace/transport/io/client'
require 'ddtrace/transport/io/traces'

module Datadog
  module Transport
    # Namespace for IO transport components
    module IO
      module_function

      # Builds a new Transport::IO::Client
      def new(out, encoder)
        Client.new(out, encoder)
      end

      # Builds a new Transport::IO::Client with default settings
      # Pass options to override any settings.
      def default(options = {})
        new(
          options.fetch(:out, STDOUT),
          options.fetch(:encoder, Encoding::JSONEncoder)
        )
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
ddtrace-0.45.0 lib/ddtrace/transport/io.rb
ddtrace-0.44.0 lib/ddtrace/transport/io.rb
ddtrace-0.43.0 lib/ddtrace/transport/io.rb
ddtrace-0.42.0 lib/ddtrace/transport/io.rb
ddtrace-0.41.0 lib/ddtrace/transport/io.rb
ls-trace-0.2.0 lib/ddtrace/transport/io.rb
ddtrace-0.40.0 lib/ddtrace/transport/io.rb
ddtrace-0.39.0 lib/ddtrace/transport/io.rb
ddtrace-0.38.0 lib/ddtrace/transport/io.rb
ddtrace-0.37.0 lib/ddtrace/transport/io.rb
ddtrace-0.36.0 lib/ddtrace/transport/io.rb
ddtrace-0.35.2 lib/ddtrace/transport/io.rb
ddtrace-0.35.1 lib/ddtrace/transport/io.rb
ddtrace-0.35.0 lib/ddtrace/transport/io.rb