Class: Google::Cloud::Trace::AsyncReporterError
- Inherits:
-
Error
- Object
- Error
- Google::Cloud::Trace::AsyncReporterError
- 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
-
#count ⇒ Array<Google::Cloud::Trace::TraceRecord>
readonly
objects that were not written to the API due to the error.
-
#traces ⇒ Object
readonly
Returns the value of attribute traces.
Instance Method Summary collapse
-
#initialize(message, traces = nil) ⇒ AsyncReporterError
constructor
A new instance of AsyncReporterError.
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 , traces = nil super @traces = traces if traces end |
Instance Attribute Details
#count ⇒ Array<Google::Cloud::Trace::TraceRecord> (readonly)
objects that were not written to the API due to the error.
32 |
# File 'lib/google/cloud/trace/errors.rb', line 32 attr_reader :traces |
#traces ⇒ Object (readonly)
Returns the value of attribute traces.
32 33 34 |
# File 'lib/google/cloud/trace/errors.rb', line 32 def traces @traces end |