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

Function New

pkg/httpclient/client.go:79–85  ·  view source on GitHub ↗
(baseURL, orgID string)

Source from the content-addressed store, hash-verified

77}
78
79func New(baseURL, orgID string) *Client {
80 return &Client{
81 BaseURL: baseURL,
82 OrgID: orgID,
83 client: &http.Client{},
84 }
85}
86
87func (c *Client) SetHeader(key string, value string) {
88 if c.headers == nil {

Callers 9

TestHTTPSFunction · 0.92
APIClientHTTPMethod · 0.92
RunValidationModeFunction · 0.92
createHTTPClientFunction · 0.92
searchHTTPMethod · 0.92
RunMethod · 0.92
searchHTTPMethod · 0.92
TestQueryTraceFunction · 0.70
TestQueryTraceWithRangeFunction · 0.70

Calls

no outgoing calls

Tested by 3

TestHTTPSFunction · 0.74
TestQueryTraceFunction · 0.56
TestQueryTraceWithRangeFunction · 0.56