OpenTelemetry PHP

Context
in package

FinalYes

Context used for component creation.

Table of Contents

Properties

$logger  : LoggerInterface
$meterProvider  : MeterProviderInterface
$tracerProvider  : TracerProviderInterface

Methods

__construct()  : mixed

Properties

$logger read-only

public LoggerInterface $logger = new NullLogger()

Methods

__construct()

public __construct([TracerProviderInterface $tracerProvider = new NoopTracerProvider() ][, MeterProviderInterface $meterProvider = new NoopMeterProvider() ][, LoggerInterface $logger = new NullLogger() ]) : mixed
Parameters
$tracerProvider : TracerProviderInterface = new NoopTracerProvider()

tracer provider to use for self diagnostics

$meterProvider : MeterProviderInterface = new NoopMeterProvider()

meter provider to use for self diagnostics

$logger : LoggerInterface = new NullLogger()

logger to use for self diagnostics


        
On this page

Search results