Class: Datadog::Profiling::Transport::HTTP::API::Spec

Inherits:
Transport::HTTP::API::Spec show all
Defined in:
lib/ddtrace/profiling/transport/http/api/spec.rb

Overview

API specification for profiling

Defined Under Namespace

Classes: NoProfilesEndpointDefinedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Transport::HTTP::API::Spec

#initialize

Constructor Details

This class inherits a constructor from Datadog::Transport::HTTP::API::Spec

Instance Attribute Details

#profilesObject

Returns the value of attribute profiles.



11
12
13
# File 'lib/ddtrace/profiling/transport/http/api/spec.rb', line 11

def profiles
  @profiles
end

Instance Method Details

#encoderObject



20
21
22
# File 'lib/ddtrace/profiling/transport/http/api/spec.rb', line 20

def encoder
  profiles.encoder
end

#send_profiling_flush(env, &block) ⇒ Object



14
15
16
17
18
# File 'lib/ddtrace/profiling/transport/http/api/spec.rb', line 14

def send_profiling_flush(env, &block)
  raise NoProfilesEndpointDefinedError, self if profiles.nil?

  profiles.call(env, &block)
end