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.



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

def initialize(error)
  @error = error
end

Instance Attribute Details

#error ⇒ Object (readonly)

Returns the value of attribute error.



346
347
348
# File 'lib/datadog/tracing/transport/native.rb', line 346

def error
  @error
end

Instance Method Details

#client_error? ⇒ Boolean

Returns:

  • (Boolean)


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

def client_error?
  false
end

#inspect ⇒ Object



388
389
390
# File 'lib/datadog/tracing/transport/native.rb', line 388

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

#internal_error? ⇒ Boolean

Returns:

  • (Boolean)


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

def internal_error?
  true
end

#not_found? ⇒ Boolean

Returns:

  • (Boolean)


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

def not_found?
  false
end

#ok? ⇒ Boolean

Returns:

  • (Boolean)


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

def ok?
  false
end

#payload ⇒ Object



376
377
378
# File 'lib/datadog/tracing/transport/native.rb', line 376

def payload
  nil
end

#server_error? ⇒ Boolean

Returns:

  • (Boolean)


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

def server_error?
  false
end

#service_rates ⇒ Object



384
385
386
# File 'lib/datadog/tracing/transport/native.rb', line 384

def service_rates
  nil
end

#trace_count ⇒ Object



380
381
382
# File 'lib/datadog/tracing/transport/native.rb', line 380

def trace_count
  0
end

#unsupported? ⇒ Boolean

Returns:

  • (Boolean)


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

def unsupported?
  false
end