MediaWiki master
Wikimedia\Telemetry\OtlpHttpExporter Class Reference

An ExporterInterface that exports collected data over HTTP, serialized in OTLP JSON format. More...

Inherits Wikimedia\Telemetry\ExporterInterface.

Collaboration diagram for Wikimedia\Telemetry\OtlpHttpExporter:

Public Member Functions

 __construct (ClientInterface $client, RequestFactoryInterface $requestFactory, LoggerInterface $logger, string $uri, string $serviceName, string $hostName)
 
 export (TracerState $tracerState)
 Export all trace data.
Parameters
TracerState$tracerState
Returns
void

 

Detailed Description

An ExporterInterface that exports collected data over HTTP, serialized in OTLP JSON format.

Since
1.43
Access: internal

Definition at line 16 of file OtlpHttpExporter.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Telemetry\OtlpHttpExporter::__construct ( ClientInterface $client,
RequestFactoryInterface $requestFactory,
LoggerInterface $logger,
string $uri,
string $serviceName,
string $hostName )

Definition at line 39 of file OtlpHttpExporter.php.

Member Function Documentation

◆ export()

Wikimedia\Telemetry\OtlpHttpExporter::export ( TracerState $tracerState)

Export all trace data.

Parameters
TracerState$tracerState
Returns
void

Implements Wikimedia\Telemetry\ExporterInterface.

Definition at line 56 of file OtlpHttpExporter.php.


The documentation for this class was generated from the following file: