OpenTelemetry PHP

ConfigProvider
in package
implements ConfigProviderInterface

FinalYes

Reads file-based instrumentation configuration from `OTEL_CONFIG_FILE`, registered under {@see ConfigProviderInterface} via SPI.

This is the spec's entry point for instrumentations that read their own configuration without depending on the SDK. It is deliberately not on SdkAutoloader's path: the autoloader parses the document once and reads both configuration roots off that single Configuration, so resolving this service there would cost it a second parse.

Tags
experimental

Table of Contents

Interfaces

ConfigProviderInterface

Methods

getInstrumentationConfig()  : ConfigProperties

Methods

On this page

Search results