Class: Datadog::Tracing::Transport::Native::InternalErrorResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/tracing/transport/native.rb

Overview

Response for internal errors (exceptions raised before reaching the native transport).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ InternalErrorResponse

Returns a new instance of InternalErrorResponse.



332
333
334
# File 'lib/datadog/tracing/transport/native.rb', line 332

def initialize(error)
  @error = error
end

Instance Attribute Details

#error ⇒ Object (readonly)

Returns the value of attribute error.



330
331
332
# File 'lib/datadog/tracing/transport/native.rb', line 330

def error
  @error
end

Instance Method Details

#client_error? ⇒ Boolean

Returns:

  • (Boolean)


348
349
350
# File 'lib/datadog/tracing/transport/native.rb', line 348

def client_error?
  false
end

#inspect ⇒ Object



372
373
374
# File 'lib/datadog/tracing/transport/native.rb', line 372

def inspect
  "#<#{self.class} error=#{error.inspect}>"
end

#internal_error? ⇒ Boolean

Returns:

  • (Boolean)


340
341
342
# File 'lib/datadog/tracing/transport/native.rb', line 340

def internal_error?
  true
end

#not_found? ⇒ Boolean

Returns:

  • (Boolean)


352
353
354
# File 'lib/datadog/tracing/transport/native.rb', line 352

def not_found?
  false
end

#ok? ⇒ Boolean

Returns:

  • (Boolean)


336
337
338
# File 'lib/datadog/tracing/transport/native.rb', line 336

def ok?
  false
end

#payload ⇒ Object



360
361
362
# File 'lib/datadog/tracing/transport/native.rb', line 360

def payload
  nil
end

#server_error? ⇒ Boolean

Returns:

  • (Boolean)


344
345
346
# File 'lib/datadog/tracing/transport/native.rb', line 344

def server_error?
  false
end

#service_rates ⇒ Object



368
369
370
# File 'lib/datadog/tracing/transport/native.rb', line 368

def service_rates
  nil
end

#trace_count ⇒ Object



364
365
366
# File 'lib/datadog/tracing/transport/native.rb', line 364

def trace_count
  0
end

#unsupported? ⇒ Boolean

Returns:

  • (Boolean)


356
357
358
# File 'lib/datadog/tracing/transport/native.rb', line 356

def unsupported?
  false
end