MCPcopy
hub / github.com/grafana/tempo / QueryTraceV2

Method QueryTraceV2

pkg/httpclient/client.go:281–291  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

279}
280
281func (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
293func (c *Client) QueryTraceWithRange(ctx context.Context, id string, start int64, end int64) (*tempopb.Trace, error) {
294 m := &tempopb.Trace{}

Callers 5

TestInvalidTenantsFunction · 0.80
TestReadMetricsFunction · 0.80
TestFailureModesFunction · 0.80
QueryAndAssertTraceFunction · 0.80
RunMethod · 0.80

Calls 1

getForMethod · 0.95

Tested by 3

TestInvalidTenantsFunction · 0.64
TestReadMetricsFunction · 0.64
TestFailureModesFunction · 0.64