Exception: Datadog::Profiling::Transport::HTTP::API::Instance::ProfilesNotSupportedError

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

Overview

Raised when profiles sent to API that does not support profiles

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(spec) ⇒ ProfilesNotSupportedError

Returns a new instance of ProfilesNotSupportedError.



24
25
26
# File 'lib/ddtrace/profiling/transport/http/api/instance.rb', line 24

def initialize(spec)
  @spec = spec
end

Instance Attribute Details

#specObject (readonly)

Returns the value of attribute spec.



22
23
24
# File 'lib/ddtrace/profiling/transport/http/api/instance.rb', line 22

def spec
  @spec
end

Instance Method Details

#messageObject



28
29
30
# File 'lib/ddtrace/profiling/transport/http/api/instance.rb', line 28

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