| 279 | } |
| 280 | |
| 281 | func (c *Client) QueryTraceV2(id string) (*tempopb.TraceByIDResponse, error) { |
| 282 | m := &tempopb.TraceByIDResponse{} |
| 283 | resp, err := c.getFor(c.BaseURL+QueryTraceV2Endpoint+"/"+id, m) |
| 284 | if err != nil { |
| 285 | if resp != nil && resp.StatusCode == http.StatusNotFound { |
| 286 | return nil, util.ErrTraceNotFound |
| 287 | } |
| 288 | return nil, err |
| 289 | } |
| 290 | return m, nil |
| 291 | } |
| 292 | |
| 293 | func (c *Client) QueryTraceWithRange(ctx context.Context, id string, start int64, end int64) (*tempopb.Trace, error) { |
| 294 | m := &tempopb.Trace{} |