TracerProviderFactory
in package
uses
LogsMessagesTrait
FinalYes
Table of Contents
Properties
- $exporterFactory : ExporterFactory
- $samplerFactory : SamplerFactory
- $spanProcessorFactory : SpanProcessorFactory
Methods
- __construct() : mixed
- create() : TracerProviderInterface
- logDebug() : void
- logError() : void
- logInfo() : void
- logNotice() : void
- logWarning() : void
- doLog() : void
- shouldLog() : bool
Properties
$exporterFactory read-only
private
ExporterFactory
$exporterFactory
= new ExporterFactory()
$samplerFactory read-only
private
SamplerFactory
$samplerFactory
= new SamplerFactory()
$spanProcessorFactory read-only
private
SpanProcessorFactory
$spanProcessorFactory
= new SpanProcessorFactory()
Methods
__construct()
public
__construct([ExporterFactory $exporterFactory = new ExporterFactory() ][, SamplerFactory $samplerFactory = new SamplerFactory() ][, SpanProcessorFactory $spanProcessorFactory = new SpanProcessorFactory() ]) : mixed
Parameters
- $exporterFactory : ExporterFactory = new ExporterFactory()
- $samplerFactory : SamplerFactory = new SamplerFactory()
- $spanProcessorFactory : SpanProcessorFactory = new SpanProcessorFactory()
create()
public
create() : TracerProviderInterface
Return values
TracerProviderInterfacelogDebug()
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> = []
doLog()
private
static doLog(string $level, string $message, array<string|int, mixed> $context) : void
Parameters
- $level : string
- $message : string
- $context : array<string|int, mixed>
shouldLog()
private
static shouldLog(string $level) : bool
Parameters
- $level : string