function ConsoleExporter::convertInstrumentationScope
1 call to ConsoleExporter::convertInstrumentationScope()
- ConsoleExporter::export in vendor/
open-telemetry/ sdk/ Logs/ Exporter/ ConsoleExporter.php
File
-
vendor/
open-telemetry/ sdk/ Logs/ Exporter/ ConsoleExporter.php, line 92
Class
- ConsoleExporter
- A JSON console exporter for LogRecords. This is only useful for testing; the output is human-readable, and is not compatible with the OTLP format.
Namespace
OpenTelemetry\SDK\Logs\ExporterCode
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(),
'logs' => [],
];
}