# Cloud Trace API - Class Google::Cloud::Trace::AsyncReporterError (v0.46.0)

0.46.0 (latest) 0.45.0 0.44.1 0.43.0 0.42.2 0.41.4 Reference documentation and code samples for the Cloud Trace API class Google::Cloud::Trace::AsyncReporterError.

## 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.

## Inherits

- Google::Cloud::Error

## Methods

### #count

    def count() -> Array<Google::Cloud::Trace::TraceRecord>

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

- (Array\<[Google::Cloud::Trace::TraceRecord](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-trace/latest/Google-Cloud-Trace-TraceRecord)\>) --- traces The trace

### #initialize

    def initialize(message, traces = nil) -> AsyncReporterError

**Returns**

- ([AsyncReporterError](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-trace/latest/Google-Cloud-Trace-AsyncReporterError)) --- a new instance of AsyncReporterError

### #traces

    def traces()

Returns the value of attribute traces.