ttrss/vendor/open-telemetry/sdk
Andrew Dolgov cdd7ad020e
jaeger-client -> opentelemetry
2023-10-20 21:13:39 +03:00
..
Common jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
Logs jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
Metrics jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
Propagation jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
Resource jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
Trace jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
README.md jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
Registry.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
Sdk.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
SdkAutoloader.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
SdkBuilder.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
_autoload.php jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00
composer.json jaeger-client -> opentelemetry 2023-10-20 21:13:39 +03:00

README.md

Releases Source Mirror Latest Version Stable

OpenTelemetry SDK

The OpenTelemetry PHP SDK implements the API, and should be used in conjunction with contributed exporter(s) to generate and export telemetry.

Documentation

https://opentelemetry.io/docs/instrumentation/php/sdk/

Getting started

Manual setup

See https://github.com/open-telemetry/opentelemetry-php/tree/main/examples

SDK Builder

See https://github.com/open-telemetry/opentelemetry-php/blob/main/examples/sdk_builder.php

Autoloading

SDK autoloading works with configuration values provided via the environment (or php.ini).

The SDK can be automatically created and registered, if the following conditions are met:

SDK autoloading will be attempted as part of composer's autoloader:

require 'vendor/autoload.php';

$tracer = \OpenTelemetry\API\Globals::tracerProvider()->getTracer('example');
$meter = \OpenTelemetry\API\Globals::meterProvider()->getMeter('example');

If autoloading was not successful (or partially successful), no-op implementations of the above may be returned.

See https://github.com/open-telemetry/opentelemetry-php/blob/main/examples/autoload_sdk.php for a more detailed example.

Contributing

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