OpenTelemetry PHP

OpenTelemetryConfiguration
in package
implements ComponentProvider

FinalYes

Table of Contents

Interfaces

ComponentProvider
A component provider is responsible for interpreting configuration and returning an implementation of a particular type.

Methods

createPlugin()  : T
getConfig()  : ArrayNodeDefinition
Returns an array node describing the properties of this component provider.
getAttributeLimitsConfig()  : ArrayNodeDefinition
getLoggerProviderConfig()  : ArrayNodeDefinition
getMeterProviderConfig()  : ArrayNodeDefinition
getResourceConfig()  : ArrayNodeDefinition
getTracerProviderConfig()  : ArrayNodeDefinition

Methods

createPlugin()

public createPlugin(, attribute_count_limit: int<0, max>}, propagator: ?\OpenTelemetry\Config\SDK\Configuration\ComponentPlugin<\OpenTelemetry\Context\Propagation\TextMapPropagatorInterface>, tracer_provider: array{limits: array{attribute_value_length_limit: ?int<0, max>, attribute_count_limit: ?int<0, max>, event_count_limit: int<0, max>, link_count_limit: int<0, max>, event_attribute_count_limit: ?int<0, max>, link_attribute_count_limit: ?int<0, max>}, sampler: ?\OpenTelemetry\Config\SDK\Configuration\ComponentPlugin<\ExampleSDK\Trace\Sampler>, processors: list<\OpenTelemetry\Config\SDK\Configuration\ComponentPlugin<\ExampleSDK\Trace\SpanProcessor>>}, meter_provider: array{views: list, aggregation: ?\OpenTelemetry\Config\SDK\Configuration\ComponentPlugin<\ExampleSDK\Metrics\AggregationResolver>}, selector: array{instrument_type: "counter"|"gauge"|"histogram"|"observable_counter"|"observable_gauge"|"observable_up_down_counter"|"up_down_counter"|null, instrument_name: ?string, unit: ?string, meter_name: ?string, meter_version: ?string, meter_schema_url: ?string}}>, readers: list<\OpenTelemetry\Config\SDK\Configuration\ComponentPlugin<\ExampleSDK\Metrics\MetricReader>>}, logger_provider: array{limits: array{attribute_value_length_limit: ?int<0, max>, attribute_count_limit: ?int<0, max>}, processors: list<\OpenTelemetry\Config\SDK\Configuration\ComponentPlugin<\ExampleSDK\Logs\LogRecordProcessor>>}}">LogRecordProcessor>>}} $properties, Context $context) : T
Parameters
$properties : , attribute_count_limit: int<0, max>}, propagator: ?\OpenTelemetry\Config\SDK\Configuration\ComponentPlugin<\OpenTelemetry\Context\Propagation\TextMapPropagatorInterface>, tracer_provider: array{limits: array{attribute_value_length_limit: ?int<0, max>, attribute_count_limit: ?int<0, max>, event_count_limit: int<0, max>, link_count_limit: int<0, max>, event_attribute_count_limit: ?int<0, max>, link_attribute_count_limit: ?int<0, max>}, sampler: ?\OpenTelemetry\Config\SDK\Configuration\ComponentPlugin<\ExampleSDK\Trace\Sampler>, processors: list<\OpenTelemetry\Config\SDK\Configuration\ComponentPlugin<\ExampleSDK\Trace\SpanProcessor>>}, meter_provider: array{views: list, aggregation: ?\OpenTelemetry\Config\SDK\Configuration\ComponentPlugin<\ExampleSDK\Metrics\AggregationResolver>}, selector: array{instrument_type: "counter"|"gauge"|"histogram"|"observable_counter"|"observable_gauge"|"observable_up_down_counter"|"up_down_counter"|null, instrument_name: ?string, unit: ?string, meter_name: ?string, meter_version: ?string, meter_schema_url: ?string}}>, readers: list<\OpenTelemetry\Config\SDK\Configuration\ComponentPlugin<\ExampleSDK\Metrics\MetricReader>>}, logger_provider: array{limits: array{attribute_value_length_limit: ?int<0, max>, attribute_count_limit: ?int<0, max>}, processors: list<\OpenTelemetry\Config\SDK\Configuration\ComponentPlugin<\ExampleSDK\Logs\LogRecordProcessor>>}}">LogRecordProcessor>>}}
$context : Context

context that should be used to resolve component plugins

Return values
T

created component, typehint has to specify the component type that is provided by this component provider

getAttributeLimitsConfig()

private getAttributeLimitsConfig() : ArrayNodeDefinition
Return values
ArrayNodeDefinition

        
On this page

Search results