module Datadog::Profiling::Transport::HTTP::API

Extensions for HTTP API Spec

Constants

V1

Default API versions

Public Instance Methods

agent_defaults() click to toggle source
# File lib/ddtrace/profiling/transport/http/api.rb, line 19
def agent_defaults
  @agent_defaults ||= Datadog::Transport::HTTP::API::Map[
    V1 => Spec.new do |s|
      s.profiles = Endpoint.new(
        '/profiling/v1/input'.freeze,
        Profiling::Encoding::Profile::Protobuf
      )
    end
  ]
end
api_defaults() click to toggle source
# File lib/ddtrace/profiling/transport/http/api.rb, line 30
def api_defaults
  @api_defaults ||= Datadog::Transport::HTTP::API::Map[
    V1 => Spec.new do |s|
      s.profiles = Endpoint.new(
        '/v1/input'.freeze,
        Profiling::Encoding::Profile::Protobuf
      )
    end
  ]
end