Exception: Datadog::Transport::HTTP::Traces::API::Instance::TracesNotSupportedError

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

Overview

Raised when traces sent to API that does not support traces

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(spec) ⇒ TracesNotSupportedError

Returns a new instance of TracesNotSupportedError.



76
77
78
# File 'lib/ddtrace/transport/http/traces.rb', line 76

def initialize(spec)
  @spec = spec
end

Instance Attribute Details

#specObject (readonly)

Returns the value of attribute spec.



74
75
76
# File 'lib/ddtrace/transport/http/traces.rb', line 74

def spec
  @spec
end

Instance Method Details

#messageObject



80
81
82
# File 'lib/ddtrace/transport/http/traces.rb', line 80

def message
  'Traces not supported for this API!'
end