function LogsConverter::convertInstrumentationScope
1 call to LogsConverter::convertInstrumentationScope()
- LogsConverter::convert in vendor/
open-telemetry/ exporter-otlp/ LogsConverter.php - @psalm-suppress InvalidArgument
File
-
vendor/
open-telemetry/ exporter-otlp/ LogsConverter.php, line 104
Class
Namespace
OpenTelemetry\Contrib\OtlpCode
private function convertInstrumentationScope(InstrumentationScopeInterface $instrumentationScope) : ScopeLogs {
$pScopeLogs = new ScopeLogs();
$pInstrumentationScope = new InstrumentationScope();
$pInstrumentationScope->setName($instrumentationScope->getName());
$pInstrumentationScope->setVersion((string) $instrumentationScope->getVersion());
$this->setAttributes($pInstrumentationScope, $instrumentationScope->getAttributes());
$pInstrumentationScope->setDroppedAttributesCount($instrumentationScope->getAttributes()
->getDroppedAttributesCount());
$pScopeLogs->setScope($pInstrumentationScope);
$pScopeLogs->setSchemaUrl((string) $instrumentationScope->getSchemaUrl());
return $pScopeLogs;
}