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 Sun Dec 22 2024 03:24:34 for MediaWiki by
1.10.0