Instrumentation
in package
FinalYes
Use Configuration::parseFile() and Configuration::getInstrumentationConfig() instead. Instrumentation configuration is a node of the same document as the SDK configuration (https://github.com/open-telemetry/opentelemetry-configuration/pull/91), so one Configuration serves both roots. Parsing them separately reads the file twice when the SDK root comes from the on-disk cache.
Tags
Table of Contents
Properties
Methods
Properties
$configuration read-only
private
Configuration
$configuration
Methods
create()
public
create([Context $context = new Context() ]) : ConfigurationRegistry
Parameters
Return values
ConfigurationRegistryparseFile()
public
static parseFile(string $file[, string|null $cacheFile = null ][, bool $debug = true ][, EnvReader|null $envReader = null ]) : Instrumentation
Parameters
- $file : string
- $cacheFile : string|null = null
- $debug : bool = true
- $envReader : EnvReader|null = null
Return values
Instrumentation__construct()
private
__construct(Configuration $configuration) : mixed
Parameters
- $configuration : Configuration