Class: Google::Cloud::Trace::AsyncReporterError

Inherits:
Error
  • Object
show all
Defined in:
lib/google/cloud/trace/errors.rb

Overview

AsyncReporterError

Used to indicate a problem preventing traces from being buffered asynchronously. This can occur when there are not enough resources allocated for the amount of usage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, traces = nil) ⇒ AsyncReporterError

Returns a new instance of AsyncReporterError.



34
35
36
37
# File 'lib/google/cloud/trace/errors.rb', line 34

def initialize message, traces = nil
  super message
  @traces = traces if traces
end

Instance Attribute Details

#countArray<Google::Cloud::Trace::TraceRecord> (readonly)

objects that were not written to the API due to the error.

Returns:



32
# File 'lib/google/cloud/trace/errors.rb', line 32

attr_reader :traces

#tracesObject (readonly)

Returns the value of attribute traces.



32
33
34
# File 'lib/google/cloud/trace/errors.rb', line 32

def traces
  @traces
end