open-telemetry/sdk-configuration

SDK configuration for OpenTelemetry PHP.

Maintainers

Package info

github.com/opentelemetry-php/config-sdk

Issues

Chat

Documentation

pkg:composer/open-telemetry/sdk-configuration

Statistics

Installs: 89 441

Dependents: 6

Suggesters: 1

Stars: 0

0.7.0 2026-01-28 11:38 UTC

This package is auto-updated.

Last update: 2026-03-10 11:02:35 UTC


README

Installation

composer require open-telemetry/sdk-configuration

Usage

Initialization from configuration file

$configuration = Configuration::parseFile(__DIR__ . '/kitchen-sink.yaml');
$sdkBuilder = $configuration->create();

Performance considerations

Parsing and processing the configuration is rather expensive. It is highly recommended to provide the $cacheFile parameter when running in a shared-nothing setup.

$configuration = Configuration::parseFile(
    __DIR__ . '/kitchen-sink.yaml',
    __DIR__ . '/var/cache/opentelemetry.php',
);
$sdkBuilder = $configuration->create();

Contributing

This repository is a read-only git subtree split. To contribute, please see the main OpenTelemetry PHP monorepo.