MetricExporterFactory
in package
implements
MetricExporterFactoryInterface
Table of Contents
Interfaces
Constants
- DEFAULT_COMPRESSION = 'none'
Properties
Methods
- __construct() : mixed
- create() : MetricExporterInterface
- buildTransport() : TransportInterface
- getCompression() : string
- getEndpoint() : string
- getTemporality() : string|Temporality|null
- getTimeout() : float
Constants
DEFAULT_COMPRESSION
private
mixed
DEFAULT_COMPRESSION
= 'none'
Properties
$transportFactory read-only
private
TransportFactoryInterface|null
$transportFactory
= null
Methods
__construct()
public
__construct([TransportFactoryInterface|null $transportFactory = null ]) : mixed
Parameters
- $transportFactory : TransportFactoryInterface|null = null
create()
public
create() : MetricExporterInterface
Tags
Return values
MetricExporterInterfacebuildTransport()
private
buildTransport(string $protocol) : TransportInterface
Parameters
- $protocol : string
Tags
Return values
TransportInterfacegetCompression()
private
getCompression() : string
Return values
stringgetEndpoint()
private
getEndpoint(string $protocol) : string
Parameters
- $protocol : string
Return values
stringgetTemporality()
private
getTemporality() : string|Temporality|null
Tags
Return values
string|Temporality|nullgetTimeout()
private
getTimeout() : float