(id string)
| 267 | } |
| 268 | |
| 269 | func (c *Client) QueryTrace(id string) (*tempopb.Trace, error) { |
| 270 | m := &tempopb.Trace{} |
| 271 | resp, err := c.getFor(c.BaseURL+QueryTraceEndpoint+"/"+id, m) |
| 272 | if err != nil { |
| 273 | if resp != nil && resp.StatusCode == http.StatusNotFound { |
| 274 | return nil, util.ErrTraceNotFound |
| 275 | } |
| 276 | return nil, err |
| 277 | } |
| 278 | return m, nil |
| 279 | } |
| 280 | |
| 281 | func (c *Client) QueryTraceV2(id string) (*tempopb.TraceByIDResponse, error) { |
| 282 | m := &tempopb.TraceByIDResponse{} |