MediaWiki master
Wikimedia\Telemetry\OtlpSerializer Class Reference

Utility class for serializing data in OTLP JSON format. More...

Static Public Member Functions

static serializeKeyValuePairs (array $keyValuePairs)
 Serialize an associative array into the format expected by the OTLP JSON format.
 

Detailed Description

Utility class for serializing data in OTLP JSON format.

Since
1.43
Access: internal

Definition at line 10 of file OtlpSerializer.php.

Member Function Documentation

◆ serializeKeyValuePairs()

static Wikimedia\Telemetry\OtlpSerializer::serializeKeyValuePairs ( array $keyValuePairs)
static

Serialize an associative array into the format expected by the OTLP JSON format.

Parameters
array$keyValuePairsThe associative array to serialize
Returns
array

Definition at line 27 of file OtlpSerializer.php.


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