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