MediaWiki
master
SamplerInterface.php
Go to the documentation of this file.
1
<?php
2
namespace
Wikimedia\Telemetry
;
3
8
interface
SamplerInterface
{
16
public
function
shouldSample
( ?
SpanContext
$parentSpanContext ): bool;
17
}
Wikimedia\Telemetry\SpanContext
Data transfer object holding data associated with a given span.
Definition
SpanContext.php:11
Wikimedia\Telemetry\SamplerInterface
Interface for OTEL span samplers.
Definition
SamplerInterface.php:8
Wikimedia\Telemetry\SamplerInterface\shouldSample
shouldSample(?SpanContext $parentSpanContext)
Determine whether a newly created span should be sampled based on its parent span data.
Wikimedia\Telemetry
Definition
Clock.php:2
includes
libs
Telemetry
SamplerInterface.php
Generated on Mon Nov 17 2025 16:24:58 for MediaWiki by
1.10.0