MediaWiki
master
SpanInterface.php
Go to the documentation of this file.
1
<?php
2
namespace
Wikimedia\Telemetry
;
3
10
interface
SpanInterface
{
15
public
const
SPAN_KIND_INTERNAL
= 1;
16
20
public
const
SPAN_KIND_SERVER
= 2;
21
25
public
const
SPAN_KIND_CLIENT
= 3;
26
30
public
const
SPAN_KIND_PRODUCER
= 4;
31
36
public
const
SPAN_KIND_CONSUMER
= 5;
37
42
public
function
getContext
():
SpanContext
;
43
56
public
function
setAttributes
( array $attributes ):
SpanInterface
;
57
66
public
function
setSpanKind
(
int
$spanKind ):
SpanInterface
;
67
73
public
function
start
( ?
int
$epochNanos =
null
):
SpanInterface
;
74
80
public
function
end
( ?
int
$epochNanos =
null
): void;
81
90
public
function
activate
(): void;
91
96
public
function
deactivate
(): void;
97
}
Wikimedia\Telemetry\SpanContext
Data transfer object holding data associated with a given span.
Definition
SpanContext.php:11
Wikimedia\Telemetry\SpanInterface
Represents an OpenTelemetry span, i.e.
Definition
SpanInterface.php:10
Wikimedia\Telemetry\SpanInterface\start
start(?int $epochNanos=null)
Start this span, optionally specifying an override for its start time.
Wikimedia\Telemetry\SpanInterface\setSpanKind
setSpanKind(int $spanKind)
Set the kind of this span, which describes how it relates to its parent and children within the overa...
Wikimedia\Telemetry\SpanInterface\SPAN_KIND_PRODUCER
const SPAN_KIND_PRODUCER
Indicates that the span describes the initiators of an asynchronous request.
Definition
SpanInterface.php:30
Wikimedia\Telemetry\SpanInterface\SPAN_KIND_CLIENT
const SPAN_KIND_CLIENT
Indicates that the span describes a request to some remote service.
Definition
SpanInterface.php:25
Wikimedia\Telemetry\SpanInterface\deactivate
deactivate()
Deactivate this span.
Wikimedia\Telemetry\SpanInterface\getContext
getContext()
Get the context holding data for this span.
Wikimedia\Telemetry\SpanInterface\activate
activate()
Make this span the active span.
Wikimedia\Telemetry\SpanInterface\SPAN_KIND_INTERNAL
const SPAN_KIND_INTERNAL
Default value.
Definition
SpanInterface.php:15
Wikimedia\Telemetry\SpanInterface\SPAN_KIND_CONSUMER
const SPAN_KIND_CONSUMER
Indicates that the span describes a child of an asynchronous SpanInterface::SPAN_KIND_PRODUCER reques...
Definition
SpanInterface.php:36
Wikimedia\Telemetry\SpanInterface\SPAN_KIND_SERVER
const SPAN_KIND_SERVER
Indicates that the span covers server-side handling of a synchronous RPC or other remote request.
Definition
SpanInterface.php:20
Wikimedia\Telemetry\SpanInterface\setAttributes
setAttributes(array $attributes)
Set attributes (arbitrary metadata) for this span.
Wikimedia\Telemetry\SpanInterface\end
end(?int $epochNanos=null)
End this span, optionally specifying an override for its end time.
Wikimedia\Telemetry
Definition
Clock.php:2
includes
libs
telemetry
SpanInterface.php
Generated on Sun Dec 22 2024 02:24:25 for MediaWiki by
1.10.0