Exception: Datadog::Transport::HTTP::Traces::API::Spec::NoTraceEndpointDefinedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ddtrace/transport/http/traces.rb

Overview

Raised when traces sent but no traces endpoint is defined

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(spec) ⇒ NoTraceEndpointDefinedError

Returns a new instance of NoTraceEndpointDefinedError.



58
59
60
# File 'lib/ddtrace/transport/http/traces.rb', line 58

def initialize(spec)
  @spec = spec
end

Instance Attribute Details

#specObject (readonly)

Returns the value of attribute spec.



56
57
58
# File 'lib/ddtrace/transport/http/traces.rb', line 56

def spec
  @spec
end

Instance Method Details

#messageObject



62
63
64
# File 'lib/ddtrace/transport/http/traces.rb', line 62

def message
  'No trace endpoint is defined for API specification!'
end