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

Inherits:
StandardError
  • Object
show all
Defined in:
lib/datadog/tracing/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.



61
62
63
64
65
# File 'lib/datadog/tracing/transport/http/traces.rb', line 61

def initialize(spec)
  super

  @spec = spec
end

Instance Attribute Details

#specObject (readonly)

Returns the value of attribute spec.



59
60
61
# File 'lib/datadog/tracing/transport/http/traces.rb', line 59

def spec
  @spec
end

Instance Method Details

#messageObject



67
68
69
# File 'lib/datadog/tracing/transport/http/traces.rb', line 67

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