Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SpanConverter.php

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

SpanConverter

Namespace

OpenTelemetry\Contrib\Otlp

Code

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal