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

Breadcrumb

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

function OtlpUtil::path

Parameters

'trace'|'metrics'|'logs' $signal:

'grpc'|'http/protobuf'|'http/json' $protocol:

File

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

Class

OtlpUtil

Namespace

OpenTelemetry\Contrib\Otlp

Code

public static function path(string $signal, string $protocol) : string {
    return match (explode('/', $protocol)[0]) {    'grpc' => self::method($signal),
        'http' => match ($signal) {    Signals::TRACE => '/v1/traces',
            Signals::METRICS => '/v1/metrics',
            Signals::LOGS => '/v1/logs',
        
        },
    
    };
}

API Navigation

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