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

Breadcrumb

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

function OtlpUtil::getHeaders

3 calls to OtlpUtil::getHeaders()
LogsExporterFactory::buildTransport in vendor/open-telemetry/exporter-otlp/LogsExporterFactory.php
@psalm-suppress UndefinedClass
MetricExporterFactory::buildTransport in vendor/open-telemetry/exporter-otlp/MetricExporterFactory.php
@psalm-suppress UndefinedClass
SpanExporterFactory::buildTransport in vendor/open-telemetry/exporter-otlp/SpanExporterFactory.php
@psalm-suppress ArgumentTypeCoercion @psalm-suppress UndefinedClass

File

vendor/open-telemetry/exporter-otlp/OtlpUtil.php, line 57

Class

OtlpUtil

Namespace

OpenTelemetry\Contrib\Otlp

Code

public static function getHeaders(string $signal) : array {
    $headers = Configuration::has(self::HEADER_VARS[$signal]) ? Configuration::getMap(self::HEADER_VARS[$signal]) : Configuration::getMap(Variables::OTEL_EXPORTER_OTLP_HEADERS);
    $headers += self::getUserAgentHeader();
    return array_map('rawurldecode', $headers);
}

API Navigation

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