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.
()
| 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. |
| 25 | func (h *TempoHarness) BaseURL() string { |
| 26 | return "http://" + h.Services[ServiceQueryFrontend].Endpoint(3200) |
| 27 | } |
| 28 | |
| 29 | func (h *TempoHarness) APIClientHTTP(tenant string) *httpclient.Client { |
| 30 | return httpclient.New(h.BaseURL(), tenant) |
no outgoing calls