OpenTelemetry PHP

Exporter
in package
implements SpanExporterInterface uses LogsMessagesTrait, UsesSpanConverterTrait

Class ZipkinExporter - implements the export interface for data transfer via Zipkin protocol

Table of Contents

Interfaces

SpanExporterInterface

Properties

$converter  : SpanConverterInterface|null
$transport  : TransportInterface

Methods

__construct()  : mixed
export()  : FutureInterface
forceFlush()  : bool
getSpanConverter()  : SpanConverterInterface
shutdown()  : bool
convertSpan()  : array<string|int, mixed>
logDebug()  : void
logError()  : void
logInfo()  : void
logNotice()  : void
logWarning()  : void
serializeTrace()  : string
setSpanConverter()  : void
doLog()  : void
shouldLog()  : bool

Properties

Methods

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> = []

serializeTrace()

protected serializeTrace(iterable<string|int, mixed> $spans) : string
Parameters
$spans : iterable<string|int, mixed>
Tags
throws
JsonException
Return values
string

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