function ConsoleMetricExporter::convertMetric
1 call to ConsoleMetricExporter::convertMetric()
- ConsoleMetricExporter::export in vendor/
open-telemetry/ sdk/ Metrics/ MetricExporter/ ConsoleMetricExporter.php - @inheritDoc
File
-
vendor/
open-telemetry/ sdk/ Metrics/ MetricExporter/ ConsoleMetricExporter.php, line 69
Class
- ConsoleMetricExporter
- Console metrics exporter. Note that the output is human-readable JSON, not compatible with OTLP.
Namespace
OpenTelemetry\SDK\Metrics\MetricExporterCode
private function convertMetric(Metric $metric) : array {
return [
'name' => $metric->name,
'description' => $metric->description,
'unit' => $metric->unit,
'data' => $metric->data,
];
}