MediaWiki
master
TracerInterface.php
Go to the documentation of this file.
1
<?php
2
namespace
Wikimedia\Telemetry
;
3
4
use Wikimedia\Assert\PreconditionException;
5
10
interface
TracerInterface
{
21
public
function
createSpan
(
string
$spanName ):
SpanInterface
;
22
31
public
function
createRootSpan
(
string
$spanName ):
SpanInterface
;
32
42
public
function
createSpanWithParent
(
string
$spanName,
SpanContext
$parentSpanContext ):
SpanInterface
;
43
48
public
function
shutdown
(): void;
49
}
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\TracerInterface
Base interface for an OpenTelemetry tracer responsible for creating spans.
Definition
TracerInterface.php:10
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
Definition
Clock.php:2
includes
libs
telemetry
TracerInterface.php
Generated on Mon Nov 11 2024 15:24:36 for MediaWiki by
1.10.0