OpenTelemetry PHP

HttpEndpointResolverInterface

Table of Contents

Constants

DEFAULT_PATHS  = [\OpenTelemetry\API\Signals::TRACE => self::TRACE_DEFAULT_PATH, \OpenTelemetry\API\Signals::METRICS => self::METRICS_DEFAULT_PATH, \OpenTelemetry\API\Signals::LOGS => self::LOGS_DEFAULT_PATH]
LOGS_DEFAULT_PATH  = 'v1/logs'
METRICS_DEFAULT_PATH  = 'v1/metrics'
TRACE_DEFAULT_PATH  = 'v1/traces'
VALID_SCHEMES  = ['http', 'https']

Methods

resolve()  : UriInterface
resolveToString()  : string

Constants

DEFAULT_PATHS

public mixed DEFAULT_PATHS = [\OpenTelemetry\API\Signals::TRACE => self::TRACE_DEFAULT_PATH, \OpenTelemetry\API\Signals::METRICS => self::METRICS_DEFAULT_PATH, \OpenTelemetry\API\Signals::LOGS => self::LOGS_DEFAULT_PATH]

Methods

resolve()

public resolve(string $endpoint, string $signal) : UriInterface
Parameters
$endpoint : string
$signal : string
Return values
UriInterface

resolveToString()

public resolveToString(string $endpoint, string $signal) : string
Parameters
$endpoint : string
$signal : string
Return values
string

        
On this page

Search results