OpenTelemetry PHP

ComponentProvider

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

Tags
template

T

Table of Contents

Methods

createPlugin()  : T
getConfig()  : ArrayNodeDefinition
Returns an array node describing the properties of this component provider.

Methods

createPlugin()

public createPlugin(array<string|int, mixed> $properties, Context $context) : T
Parameters
$properties : array<string|int, mixed>

properties provided for this component provider

$context : Context

context that should be used to resolve component plugins

Tags
see
ComponentPlugin::create()
Return values
T

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

getConfig()

Returns an array node describing the properties of this component provider.

public getConfig(ComponentProviderRegistry $registry) : ArrayNodeDefinition
Parameters
$registry : ComponentProviderRegistry

registry containing all available component providers

Tags
see
ComponentProviderRegistry::component()
see
ComponentProviderRegistry::componentList()
see
ComponentProviderRegistry::componentArrayList()
see
ComponentProviderRegistry::componentNames()
Return values
ArrayNodeDefinition

array node describing the properties


        
On this page

Search results