Download the PHP package open-telemetry/sdk-configuration without Composer

On this page you can find all versions of the php package open-telemetry/sdk-configuration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sdk-configuration

OpenTelemetry SDK configuration

Installation

Choose a YAML parser

Loading a YAML file needs symfony/yaml or ext-yaml. Prefer symfony/yaml:

The spec says files SHOULD be parsed with the YAML 1.2 core schema. symfony/yaml follows it for booleans. ext-yaml parses YAML 1.1, where yes, no, on and off are booleans. With ext-yaml, quote those values when you mean a string.

When both are installed, symfony/yaml is used.

Usage

Initialization from configuration file

Supported file format

This package's major version matches the file_format major version it implements: 1.x of this package implements file_format: "1.x", as defined by opentelemetry-configuration. Only one schema major version is supported at a time.

Within that major version, the file format rules apply:

The 1.0-rc.* release candidates and the superseded 0.x formats are rejected.

Quote the version: an unquoted 1.0 is YAML for a float, not the string "1.0".

Not every property of the schema is acted on yet; unimplemented ones are validated and ignored, so a valid file always parses. See Settings that parse but have no effect.

Distribution-specific settings

The distribution key is the schema's standardized location for settings outside the OpenTelemetry configuration model. Each key under it names a distribution; this one uses opentelemetry_php/development:

response_propagator/development takes composite and composite_list, like the schema's propagator. Response propagators aren't in the specification. The top-level response_propagator/development key is deprecated. It still works and logs a warning, and the distribution one wins when both are set.

Any distribution may claim a key there, so one file can carry the settings of several. Keys this SDK has no provider for — another distribution's, or one whose package is not installed — are ignored and logged at warning level, rather than failing the parse. Note that this makes a typo in the key above silently fall back to the default instead of raising an error; the warning is where it shows up. It is emitted when the SDK is created, so a configured log_level applies to it.

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.

Deviations from the specification

Settings that parse but have no effect

These are validated, so a file that sets them still parses, but the SDK doesn't act on them yet:

View aggregations

Instrumentation configuration

Configuration::getInstrumentationConfig() returns a ConfigProperties. In the spec, ConfigProperties is a view of one mapping node, with typed accessors for its scalars, mappings and sequences. Here it is a registry of instrumentation configuration objects keyed by class:

ConfigProperties is marked experimental. The spec's accessors will be added alongside get(), which stays.

Contributing

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


All versions of sdk-configuration with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
composer-runtime-api Version ^2.0
open-telemetry/api Version ^1.11
open-telemetry/context Version ^1.4
open-telemetry/sdk Version ^1.16
psr/log Version ^1.1|^2.0|^3.0
symfony/config Version ^5.4 || ^6.4 || ^7.0 || ^8.0
tbachert/spi Version ^1.0.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package open-telemetry/sdk-configuration contains the following files

Loading the files please wait ...