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

Method QueryTrace

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

Source from the content-addressed store, hash-verified

267}
268
269func (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
281func (c *Client) QueryTraceV2(id string) (*tempopb.TraceByIDResponse, error) {
282 m := &tempopb.TraceByIDResponse{}

Callers

nothing calls this directly

Calls 1

getForMethod · 0.95

Tested by

no test coverage detected