Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4135462
SamplerInterface.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
530 B
Referenced Files
None
Subscribers
None
SamplerInterface.php
View Options
<?php
namespace
Wikimedia\Telemetry
;
/**
* Interface for OTEL span samplers.
* @since 1.43
*/
interface
SamplerInterface
{
/**
* Determine whether a newly created span should be sampled based on its parent span data.
*
* @param SpanContext|null $parentSpanContext Context of he parent span of the newly created span,
* or `null` if the newly created span is a root span.
* @return bool Whether the newly created span should be sampled.
*/
public
function
shouldSample
(
?
SpanContext
$parentSpanContext
):
bool
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 13:11 (3 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
4e/b2/c06982a566f4f8333c37ef120c53
Default Alt Text
SamplerInterface.php (530 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment