public static function start(ExporterInterface $reporter, array $options = [])
    {
        $sampler = array_key_exists('sampler', $options)
            ? $options['sampler']
            : new AlwaysSampleSampler();
        unset($options['sampler']);

        $propagator = array_key_exists('propagator', $options)
            ? $options['propagator']
            : new HttpHeaderPropagator();
        unset($options['propagator']);

        return self::$instance = new RequestHandler($reporter, $sampler, $propagator, $options);
    }
public static function start(ExporterInterface $reporter, array $options = [])
    {
        $sampler = array_key_exists('sampler', $options)
            ? $options['sampler']
            : new AlwaysSampleSampler();
        unset($options['sampler']);

        $propagator = array_key_exists('propagator', $options)
            ? $options['propagator']
            : new HttpHeaderPropagator();
        unset($options['propagator']);

        return self::$instance = new RequestHandler($reporter, $sampler, $propagator, $options);
    }
public static function start ( ExporterInterface $ reporter , array $ options = [ ] ) { $ sampler = array_key_exists ( 'sampler' , $ options ) ? $ options [ 'sampler' ] : new AlwaysSampleSampler ( ) ; unset ( $ options [ 'sampler' ] ) ; $ propagator = array_key_exists ( 'propagator' , $ options ) ? $ options [ 'propagator' ] : new HttpHeaderPropagator ( ) ; unset ( $ options [ 'propagator' ] ) ; return self :: $ instance = new RequestHandler ( $ reporter , $ sampler , $ propagator , $ options ) ; }
Start a new trace session for this request. You should call this as early as
possible for the most accurate results.

@param ExporterInterface $reporter
@param array $options Configuration options. See
<a href="Span.html#method___construct">OpenCensus\Trace\Span::__construct()</a>
for the other available options.

@type SamplerInterface $sampler Sampler that defines the sampling rules.
**Defaults to** a new `AlwaysSampleSampler`.
@type PropagatorInterface $propagator SpanContext propagator. **Defaults to**
a new `HttpHeaderPropagator` instance
@type array $headers Optional array of headers to use in place of $_SERVER
@return RequestHandler
Start a new trace session for this request . You should call this as early as possible for the most accurate results .