Page MenuHomeWickedGov Phorge

SamplerInterface.php
No OneTemporary

Size
531 B
Referenced Files
None
Subscribers
None

SamplerInterface.php

<?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 the 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

Mime Type
text/x-php
Expires
Sun, Nov 22, 20:45 (2 d, 9 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
43/31/f77a225c8959650d1f976c54a4e7
Default Alt Text
SamplerInterface.php (531 B)

Event Timeline