Class: Datadog::DI::Transport::HTTP::Diagnostics::API::Spec Private

Inherits:
Core::Transport::HTTP::API::Spec show all
Defined in:
lib/datadog/di/transport/http/diagnostics.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initialize

Constructor Details

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

Instance Attribute Details

#diagnosticsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



32
33
34
# File 'lib/datadog/di/transport/http/diagnostics.rb', line 32

def diagnostics
  @diagnostics
end

Instance Method Details

#send_diagnostics(env, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



34
35
36
37
38
# File 'lib/datadog/di/transport/http/diagnostics.rb', line 34

def send_diagnostics(env, &block)
  raise Core::Transport::HTTP::API::Spec::EndpointNotDefinedError.new('diagnostics', self) if diagnostics.nil?

  diagnostics.call(env, &block)
end