Flow PHP

Configuration

Read onlyYes
FinalYes

Constants

DEFAULT_BATCH_SIZE  : int = 512
DEFAULT_CONNECT_TIMEOUT_MS  : int = 250
DEFAULT_ENDPOINT  : string = 'http://localhost:4318'
DEFAULT_FILE_PERMISSIONS  : int = 0644
DEFAULT_MESSAGE_PREFIX  : string = '[flow-telemetry]'
DEFAULT_SHUTDOWN_TIMEOUT_MS  : int = 5000
DEFAULT_TIMEOUT_MS  : int = 250
ERROR_HANDLER_LOG  : string = 'error_log'
ERROR_HANDLER_NOOP  : string = 'noop'
ERROR_HANDLER_STREAM  : string = 'stream'
ERROR_HANDLER_SYSLOG  : string = 'syslog'
ERROR_HANDLER_UDP_SYSLOG  : string = 'udp_syslog'
TRANSPORT_CURL  : string = 'curl'
TRANSPORT_GRPC  : string = 'grpc'
TRANSPORT_STREAM  : string = 'stream'

Properties

$batchSize  : int
$emitMetrics  : bool
$emitTestCaseSpans  : bool
$emitTestSpans  : bool
$emitTraces  : bool
$errorHandler  : ErrorLogHandlerConfig|NullErrorHandlerConfig|StreamErrorHandlerConfig|SyslogErrorHandlerConfig|UdpSyslogErrorHandlerConfig
$serviceName  : string
$transport  : CurlTransportConfig|GrpcTransportConfig|StreamTransportConfig

Methods

__construct()  : mixed
fromParameters()  : self

Constants

DEFAULT_CONNECT_TIMEOUT_MS

public int DEFAULT_CONNECT_TIMEOUT_MS = 250

DEFAULT_ENDPOINT

public string DEFAULT_ENDPOINT = 'http://localhost:4318'

DEFAULT_FILE_PERMISSIONS

public int DEFAULT_FILE_PERMISSIONS = 0644

DEFAULT_MESSAGE_PREFIX

public string DEFAULT_MESSAGE_PREFIX = '[flow-telemetry]'

DEFAULT_SHUTDOWN_TIMEOUT_MS

public int DEFAULT_SHUTDOWN_TIMEOUT_MS = 5000

ERROR_HANDLER_LOG

public string ERROR_HANDLER_LOG = 'error_log'

ERROR_HANDLER_NOOP

public string ERROR_HANDLER_NOOP = 'noop'

ERROR_HANDLER_STREAM

public string ERROR_HANDLER_STREAM = 'stream'

ERROR_HANDLER_SYSLOG

public string ERROR_HANDLER_SYSLOG = 'syslog'

ERROR_HANDLER_UDP_SYSLOG

public string ERROR_HANDLER_UDP_SYSLOG = 'udp_syslog'

Properties

Methods

__construct()

public __construct(string $serviceName, CurlTransportConfig|GrpcTransportConfig|StreamTransportConfig $transport, bool $emitTraces, bool $emitMetrics, bool $emitTestSpans, bool $emitTestCaseSpans, int $batchSize, ErrorLogHandlerConfig|NullErrorHandlerConfig|StreamErrorHandlerConfig|SyslogErrorHandlerConfig|UdpSyslogErrorHandlerConfig $errorHandler) : mixed
Parameters
$serviceName : string
$transport : CurlTransportConfig|GrpcTransportConfig|StreamTransportConfig
$emitTraces : bool
$emitMetrics : bool
$emitTestSpans : bool
$emitTestCaseSpans : bool
$batchSize : int
$errorHandler : ErrorLogHandlerConfig|NullErrorHandlerConfig|StreamErrorHandlerConfig|SyslogErrorHandlerConfig|UdpSyslogErrorHandlerConfig

fromParameters()

public static fromParameters(ParameterCollection $parameters) : self
Parameters
$parameters : ParameterCollection
Return values
self
On this page

Search results