public function isSampled(string $traceId = '', string $operation = '')
    {
        return [$this->rateLimiter->checkCredit(1.0), $this->tags];
    }
public function isSampled(string $traceId = '', string $operation = '')
    {
        return [$this->rateLimiter->checkCredit(1.0), $this->tags];
    }
public function isSampled ( string $ traceId = '' , string $ operation = '' ) { return [ $ this -> rateLimiter -> checkCredit ( 1.0 ) , $ this -> tags ] ; }
Whether or not the new trace should be sampled.

Implementations should return an array in the format [$decision, $tags].

@param string $traceId The traceId on the span.
@param string $operation The operation name set on the span.
@return array
Whether or not the new trace should be sampled .