function ConsoleMetricExporter::convertResource
1 call to ConsoleMetricExporter::convertResource()
- ConsoleMetricExporter::export in vendor/
open-telemetry/ sdk/ Metrics/ MetricExporter/ ConsoleMetricExporter.php - @inheritDoc
File
-
vendor/
open-telemetry/ sdk/ Metrics/ MetricExporter/ ConsoleMetricExporter.php, line 79
Class
- ConsoleMetricExporter
- Console metrics exporter. Note that the output is human-readable JSON, not compatible with OTLP.
Namespace
OpenTelemetry\SDK\Metrics\MetricExporterCode
private function convertResource(ResourceInfo $resource) : array {
return [
'attributes' => $resource->getAttributes()
->toArray(),
'dropped_attributes_count' => $resource->getAttributes()
->getDroppedAttributesCount(),
];
}