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

Breadcrumb

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

function ConsoleExporter::scopeKey

1 call to ConsoleExporter::scopeKey()
ConsoleExporter::export in vendor/open-telemetry/sdk/Logs/Exporter/ConsoleExporter.php

File

vendor/open-telemetry/sdk/Logs/Exporter/ConsoleExporter.php, line 87

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\Exporter

Code

private function scopeKey(InstrumentationScopeInterface $scope) : string {
    return serialize([
        $scope->getName(),
        $scope->getVersion(),
        $scope->getSchemaUrl(),
        $scope->getAttributes(),
    ]);
}

API Navigation

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