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

Function NewSearchGRPCClient

integration/util/harness_api_reads.go:54–61  ·  view source on GitHub ↗
(endpoint string, creds credentials.TransportCredentials)

Source from the content-addressed store, hash-verified

52}
53
54func NewSearchGRPCClient(endpoint string, creds credentials.TransportCredentials) (tempopb.StreamingQuerierClient, error) {
55 clientConn, err := grpc.NewClient(endpoint, grpc.WithTransportCredentials(creds))
56 if err != nil {
57 return nil, err
58 }
59
60 return tempopb.NewStreamingQuerierClient(clientConn), nil
61}
62
63func SearchTraceQLAndAssertTrace(t *testing.T, client *httpclient.Client, info *tempoUtil.TraceInfo) {
64 expected, err := info.ConstructTraceFromEpoch()

Callers 1

APIClientGRPCMethod · 0.85

Calls 1

Tested by

no test coverage detected