function SpanConverter::convertScopeSpans
1 call to SpanConverter::convertScopeSpans()
- SpanConverter::convert in vendor/
open-telemetry/ exporter-otlp/ SpanConverter.php
File
-
vendor/
open-telemetry/ exporter-otlp/ SpanConverter.php, line 97
Class
Namespace
OpenTelemetry\Contrib\OtlpCode
private function convertScopeSpans(InstrumentationScopeInterface $instrumentationScope) : ScopeSpans {
$pScopeSpans = new ScopeSpans();
$pInstrumentationScope = new InstrumentationScope();
$pInstrumentationScope->setName($instrumentationScope->getName());
$pInstrumentationScope->setVersion((string) $instrumentationScope->getVersion());
$this->setAttributes($pInstrumentationScope, $instrumentationScope->getAttributes());
$pScopeSpans->setScope($pInstrumentationScope);
$pScopeSpans->setSchemaUrl((string) $instrumentationScope->getSchemaUrl());
return $pScopeSpans;
}