Sha256: 6f03f1040281b6f2538fc7cc4d614201d8d5212f29563c67f46bb68237b7cca4
Contents?: true
Size: 834 Bytes
Versions: 4
Compression:
Stored size: 834 Bytes
Contents
# typed: true require 'ddtrace/transport/http/builder' require 'datadog/profiling/transport/http/api' require 'datadog/profiling/transport/http/client' module Datadog module Profiling module Transport module HTTP # Builds new instances of Transport::HTTP::Client class Builder < Datadog::Transport::HTTP::Builder def api_instance_class API::Instance end def to_transport raise Datadog::Transport::HTTP::Builder::NoDefaultApiError if @default_api.nil? # TODO: Profiling doesn't have multiple APIs yet. # When it does, we should build it out with these APIs. # Just use :default_api for now. Client.new(to_api_instances[@default_api]) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems