code: func newSegment(ctx context.Context, traceID, name string, req *http.Request, c net.Conn) *Segment {
  	var (
  		spanID   = middleware.ContextSpanID(ctx)
  		parentID = middleware.ContextParentSpanID(ctx)
  	)
  
  	s := NewSegment(name, traceID, spanID, c)
  	s.RecordRequest(req, "")
  
  	if parentID != "" {
  		s.ParentID = parentID
  	}
  
  	return s
  }
docs: // newSegment creates a new segment for the incoming request.