(ctx context.Context, req tripperware.Request, res tripperware.Response)
| 564 | } |
| 565 | |
| 566 | func toExtent(ctx context.Context, req tripperware.Request, res tripperware.Response) (tripperware.Extent, error) { |
| 567 | any, err := types.MarshalAny(res) |
| 568 | if err != nil { |
| 569 | return tripperware.Extent{}, err |
| 570 | } |
| 571 | return tripperware.Extent{ |
| 572 | Start: req.GetStart(), |
| 573 | End: req.GetEnd(), |
| 574 | Response: any, |
| 575 | TraceId: jaegerTraceID(ctx), |
| 576 | }, nil |
| 577 | } |
| 578 | |
| 579 | func extentToResponse(e tripperware.Extent) (tripperware.Response, error) { |
| 580 | msg, err := types.EmptyAny(e.Response) |
no test coverage detected