OpenTelemetry PHP

MetricExporter
in package
implements PushMetricExporterInterface, AggregationTemporalitySelectorInterface uses LogsMessagesTrait

FinalYes
Tags
see
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/stdout.md#opentelemetry-metrics-exporter---standard-output
see
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/file-exporter.md#json-file-serialization
psalm-import-type

SUPPORTED_CONTENT_TYPES from ProtobufSerializer

Table of Contents

Interfaces

PushMetricExporterInterface
AggregationTemporalitySelectorInterface

Properties

$serializer  : ProtobufSerializer
$temporality  : string|Temporality|null
$transport  : TransportInterface

Methods

__construct()  : mixed
export()  : bool
forceFlush()  : bool
shutdown()  : bool
temporality()  : string|Temporality|null
Returns the temporality to use for the given metric.
logDebug()  : void
logError()  : void
logInfo()  : void
logNotice()  : void
logWarning()  : void
doLog()  : void
shouldLog()  : bool

Properties

Methods

export()

public export(iterable<string|int, mixed> $batch) : bool
Parameters
$batch : iterable<string|int, mixed>
Return values
bool

logDebug()

protected static logDebug(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
$message : string
$context : array<string|int, mixed> = []

logError()

protected static logError(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
$message : string
$context : array<string|int, mixed> = []

logInfo()

protected static logInfo(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
$message : string
$context : array<string|int, mixed> = []

logNotice()

protected static logNotice(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
$message : string
$context : array<string|int, mixed> = []

logWarning()

protected static logWarning(string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
$message : string
$context : array<string|int, mixed> = []

doLog()

private static doLog(string $level, string $message, array<string|int, mixed> $context) : void
Parameters
$level : string
$message : string
$context : array<string|int, mixed>

shouldLog()

private static shouldLog(string $level) : bool
Parameters
$level : string
Return values
bool

        
On this page

Search results