OpenTelemetry PHP

LogRecordExporterOtlp
in package
implements ComponentProvider

FinalYes
Tags
implements

ComponentProvider<LogRecordExporterInterface>

Attributes
#[PackageDependency]
'open-telemetry/exporter-otlp'
'^1.0.5'

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.

Methods

createPlugin()

public createPlugin(array{protocol: "http/protobuf"|"http/json"|"grpc", endpoint: string, certificate: ?string, client_key: ?string, client_certificate: ?string, headers: list, headers_list: ?string, compression: "gzip"|null, timeout: int<0, max>} $properties, Context $context) : T
Parameters
$properties : array{protocol: "http/protobuf"|"http/json"|"grpc", endpoint: string, certificate: ?string, client_key: ?string, client_certificate: ?string, headers: list, headers_list: ?string, compression: "gzip"|null, timeout: int<0, max>}
$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

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

Return values
ArrayNodeDefinition

array node describing the properties


        
On this page

Search results