Sha256: ba431c98e98fab0a30ae66bce2ac12783aa70180040c3ce06199f32f07e9a25c

Contents?: true

Size: 626 Bytes

Versions: 7

Compression:

Stored size: 626 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

7 entries across 7 versions & 1 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/transport/io.rb
ddtrace-0.51.0 lib/ddtrace/transport/io.rb
ddtrace-0.50.0 lib/ddtrace/transport/io.rb
ddtrace-0.49.0 lib/ddtrace/transport/io.rb
ddtrace-0.48.0 lib/ddtrace/transport/io.rb
ddtrace-0.47.0 lib/ddtrace/transport/io.rb
ddtrace-0.46.0 lib/ddtrace/transport/io.rb