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

Function getGRPCEndpoint

cmd/tempo-vulture/main.go:252–263  ·  view source on GitHub ↗
(endpoint string)

Source from the content-addressed store, hash-verified

250}
251
252func getGRPCEndpoint(endpoint string) (string, error) {
253 u, err := url.Parse(endpoint)
254 if err != nil {
255 return "", err
256 }
257 url := u.String()
258
259 if u.Port() == "" {
260 url = fmt.Sprintf("%s:%d", url, defaultOTLPGRPCEndpoint)
261 }
262 return url, nil
263}
264
265func initTickers(
266 tempoWriteBackoffDuration time.Duration,

Callers 2

TestGetGrpcEndpointFunction · 0.85
mainFunction · 0.85

Calls 2

ParseMethod · 0.65
StringMethod · 0.45

Tested by 1

TestGetGrpcEndpointFunction · 0.68