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

Method BaseURL

integration/util/harness_api_reads.go:25–27  ·  view source on GitHub ↗

BaseURL returns the base URL for the Tempo queryAPI. Some tests construct requests manually if they need to do something such as set custom headers or bad requests bodies. If you don't have a special need, use the client returned from APIClientHTTP or APIClientGRPC instead.

()

Source from the content-addressed store, hash-verified

23// they need to do something such as set custom headers or bad requests bodies. If you don't have
24// a special need, use the client returned from APIClientHTTP or APIClientGRPC instead.
25func (h *TempoHarness) BaseURL() string {
26 return "http://" + h.Services[ServiceQueryFrontend].Endpoint(3200)
27}
28
29func (h *TempoHarness) APIClientHTTP(tenant string) *httpclient.Client {
30 return httpclient.New(h.BaseURL(), tenant)

Calls

no outgoing calls