public function fromIncomingRequest(Request $request)
{
return new Span($this->getOrGenerateIdentifier($request, 'X-B3-SpanId'), $this->getName($request), $this->getOrGenerateIdentifier($request, 'X-B3-TraceId'), [new Annotation(Annotation::SERVER_RECEIVE, $this->clock->microseconds(), $this->endpointResolver->resolve())], [new BinaryAnnotation('http.host', $request->getHost(), BinaryAnnotation::TYPE_STRING), new BinaryAnnotation('http.scheme', $request->getScheme(), BinaryAnnotation::TYPE_STRING), new BinaryAnnotation('http.path', $request->getPathInfo(), BinaryAnnotation::TYPE_STRING)], $this->getIdentifier($request, 'X-B3-ParentSpanId'), $request->headers->get('X-B3-Flags') == '1', $this->clock->microseconds());
}