tags = [ SAMPLER_TYPE_TAG_KEY => SAMPLER_TYPE_CONST, SAMPLER_PARAM_TAG_KEY => $decision, ]; $this->decision = $decision; } /** * {@inheritdoc} * * @param string $traceId The traceId on the span. * @param string $operation The operation name set on the span. * @return array */ public function isSampled(string $traceId, string $operation = ''): array { return [$this->decision, $this->tags]; } /** * {@inheritdoc} * * Only implemented to satisfy the sampler interface. * * @return void */ public function close() { // nothing to do } }