SpanExporterFactory
in package
implements
SpanExporterFactoryInterface
uses
LogsMessagesTrait
Table of Contents
Interfaces
Constants
- DEFAULT_COMPRESSION : mixed = 'none'
Properties
Methods
- __construct() : mixed
- create() : SpanExporterInterface
- logDebug() : void
- logError() : void
- logInfo() : void
- logNotice() : void
- logWarning() : void
- buildTransport() : TransportInterface
- doLog() : void
- Logging is best effort: a failing log writer (for example an error handler that throws on `trigger_error`) must not break the code that is being observed.
- getCompression() : string
- getEndpoint() : string
- getProtocol() : string
- getTimeout() : float
- shouldLog() : bool
Constants
DEFAULT_COMPRESSION
private
mixed
DEFAULT_COMPRESSION
= 'none'
Properties
$transportFactory read-only
private
TransportFactoryInterface|null
$transportFactory
= null
Methods
__construct()
public
__construct([TransportFactoryInterface|null $transportFactory = null ]) : mixed
Parameters
- $transportFactory : TransportFactoryInterface|null = null
create()
public
create() : SpanExporterInterface
Tags
Attributes
- #[Override]
Return values
SpanExporterInterfacelogDebug()
protected
static logDebug(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
logError()
protected
static logError(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
logInfo()
protected
static logInfo(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
logNotice()
protected
static logNotice(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
logWarning()
protected
static logWarning(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : string
- $context : array<string|int, mixed> = []
buildTransport()
private
buildTransport() : TransportInterface
Tags
Return values
TransportInterfacedoLog()
Logging is best effort: a failing log writer (for example an error handler that throws on `trigger_error`) must not break the code that is being observed.
private
static doLog(string $level, string $message, array<string|int, mixed> $context) : void
Parameters
- $level : string
- $message : string
- $context : array<string|int, mixed>
getCompression()
private
getCompression() : string
Return values
stringgetEndpoint()
private
getEndpoint(string $protocol) : string
Parameters
- $protocol : string
Return values
stringgetProtocol()
private
getProtocol() : string
Return values
stringgetTimeout()
private
getTimeout() : float
Return values
floatshouldLog()
private
static shouldLog(string $level) : bool
Parameters
- $level : string