Bånder

OpenTelemetryManager
in package

Table of Contents

Properties

$activeSpans  : array<string|int, mixed>
$logger  : LoggerInterface
$meter  : MeterInterface
$tracer  : TracerInterface

Methods

__construct()  : mixed
finishHttpSpan()  : void
forceFlush()  : void
getLogger()  : LoggerInterface
Get the logger instance
getMeter()  : MeterInterface
Get the meter instance
getTracer()  : TracerInterface
Get the tracer instance
logEvent()  : void
recordHistogram()  : void
recordMetric()  : void
shutdown()  : void
startCacheSpan()  : SpanInterface
startDatabaseSpan()  : SpanInterface
startHttpSpan()  : SpanInterface
getRequestKey()  : string
getResponseContentLength()  : int|null

Properties

Methods

finishHttpSpan()

public finishHttpSpan(Request $request, Response $response) : void
Parameters
$request : Request
$response : Response

getLogger()

Get the logger instance

public getLogger() : LoggerInterface
Return values
LoggerInterface

getMeter()

Get the meter instance

public getMeter() : MeterInterface
Return values
MeterInterface

getTracer()

Get the tracer instance

public getTracer() : TracerInterface
Return values
TracerInterface

logEvent()

public logEvent(string $message[, array<string|int, mixed> $context = [] ][, string $level = 'info' ]) : void
Parameters
$message : string
$context : array<string|int, mixed> = []
$level : string = 'info'

recordHistogram()

public recordHistogram(string $name, float $value[, array<string|int, mixed> $attributes = [] ]) : void
Parameters
$name : string
$value : float
$attributes : array<string|int, mixed> = []

recordMetric()

public recordMetric(string $name, float $value[, array<string|int, mixed> $attributes = [] ]) : void
Parameters
$name : string
$value : float
$attributes : array<string|int, mixed> = []

startCacheSpan()

public startCacheSpan(string $operation, string $key) : SpanInterface
Parameters
$operation : string
$key : string
Return values
SpanInterface

startDatabaseSpan()

public startDatabaseSpan(string $query[, string $connection = 'default' ]) : SpanInterface
Parameters
$query : string
$connection : string = 'default'
Return values
SpanInterface

startHttpSpan()

public startHttpSpan(Request $request[, Context|null $parentContext = null ]) : SpanInterface
Parameters
$request : Request
$parentContext : Context|null = null
Return values
SpanInterface

getRequestKey()

private getRequestKey(Request $request) : string
Parameters
$request : Request
Return values
string

getResponseContentLength()

private getResponseContentLength(Response $response) : int|null
Parameters
$response : Response
Return values
int|null

        
On this page

Search results