Tolerance\Tracer\Span\Identifier::fromString PHP Method

fromString() public static method

public static fromString ( $string )
    public static function fromString($string)
    {
        return new self($string);
    }

Usage Example

Ejemplo n.º 1
0
 function it_uses_the_span_name_when_only_one_is_traced(Tracer $decoratedTracer, Stopwatch $stopwatch)
 {
     $spans = [new Span(Identifier::fromString('1234'), 'name', Identifier::fromString('1234'))];
     $stopwatch->start('trace (name)')->shouldBeCalled();
     $stopwatch->stop('trace (name)')->shouldBeCalled();
     $this->trace($spans);
 }
All Usage Examples Of Tolerance\Tracer\Span\Identifier::fromString