Represents the collection result of the metrics. If there are any non-critical errors in the collection, like throwing in a single observable callback, these errors are aggregated in the CollectionResult.errors array and other successfully collected metrics are returned.

interface CollectionResult {
    errors: unknown[];
    resourceMetrics: ResourceMetrics;
}

Properties

errors: unknown[]

Arbitrary JavaScript exception values.

resourceMetrics: ResourceMetrics

Collected metrics.