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

Breadcrumb

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

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

LogsConverter

Namespace

OpenTelemetry\Contrib\Otlp

Code

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

API Navigation

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