MediaWiki
master
TracerInterface.php
Go to the documentation of this file.
1
<?php
2
namespace
Wikimedia\Telemetry
;
3
4
use Wikimedia\Assert\PreconditionException;
5
use
Wikimedia\Http\TelemetryHeadersInterface
;
6
11
interface
TracerInterface
extends
TelemetryHeadersInterface
{
22
public
function
createSpan
(
string
$spanName ):
SpanInterface
;
23
32
public
function
createRootSpan
(
string
$spanName ):
SpanInterface
;
33
43
public
function
createSpanWithParent
(
string
$spanName,
SpanContext
$parentSpanContext ):
SpanInterface
;
44
56
public
function
createRootSpanFromCarrier
(
string
$spanName, array $carrier ):
SpanInterface
;
57
62
public
function
shutdown
(): void;
63
}
Wikimedia\Telemetry\SpanContext
Data transfer object holding data associated with a given span.
Definition
SpanContext.php:11
Wikimedia\Http\TelemetryHeadersInterface
Provide Request Telemetry information.
Definition
TelemetryHeadersInterface.php:10
Wikimedia\Telemetry\SpanInterface
Represents an OpenTelemetry span, i.e.
Definition
SpanInterface.php:14
Wikimedia\Telemetry\TracerInterface
Base interface for an OpenTelemetry tracer responsible for creating spans.
Definition
TracerInterface.php:11
Wikimedia\Telemetry\TracerInterface\createRootSpan
createRootSpan(string $spanName)
Create a new root span, i.e.
Wikimedia\Telemetry\TracerInterface\createSpanWithParent
createSpanWithParent(string $spanName, SpanContext $parentSpanContext)
Create a span with the given name and parent.
Wikimedia\Telemetry\TracerInterface\createSpan
createSpan(string $spanName)
Create a span with the given name and the currently active span as the implicit parent.
Wikimedia\Telemetry\TracerInterface\shutdown
shutdown()
Shut down this tracer and export collected trace data.
Wikimedia\Telemetry\TracerInterface\createRootSpanFromCarrier
createRootSpanFromCarrier(string $spanName, array $carrier)
Create a span from a carrier (e.g.
Wikimedia\Telemetry
Definition
Clock.php:2
includes
libs
telemetry
TracerInterface.php
Generated on Thu Feb 13 2025 17:24:52 for MediaWiki by
1.10.0