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

Method getFor

pkg/httpclient/client.go:110–112  ·  view source on GitHub ↗

getFor sends a GET request and attempts to unmarshal the response.

(url string, m proto.Message)

Source from the content-addressed store, hash-verified

108
109// getFor sends a GET request and attempts to unmarshal the response.
110func (c *Client) getFor(url string, m proto.Message) (*http.Response, error) {
111 return c.getForWithContext(context.Background(), url, m)
112}
113
114func (c *Client) getForWithContext(ctx context.Context, url string, m proto.Message) (*http.Response, error) {
115 req, err := http.NewRequestWithContext(ctx, "GET", url, nil)

Callers 14

SearchTagsMethod · 0.95
SearchTagsV2Method · 0.95
SearchTagsWithRangeMethod · 0.95
SearchTagsV2WithRangeMethod · 0.95
SearchTagValuesMethod · 0.95
SearchMethod · 0.95
QueryTraceMethod · 0.95
QueryTraceV2Method · 0.95
SearchTraceQLMethod · 0.95

Calls 1

getForWithContextMethod · 0.95

Tested by

no test coverage detected