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

Function printAsJSON

cmd/tempo-cli/shared.go:138–147  ·  view source on GitHub ↗
(pb proto.Message)

Source from the content-addressed store, hash-verified

136}
137
138func printAsJSON(pb proto.Message) error {
139 m := jsonpb.Marshaler{}
140 traceJSON, err := m.MarshalToString(pb)
141 if err != nil {
142 return err
143 }
144
145 fmt.Println(traceJSON)
146 return nil
147}
148
149func parseHeaders(headers []string) [][2]string {
150 var parsed [][2]string

Callers 10

searchHTTPMethod · 0.85
searchGRPCMethod · 0.85
searchGRPCMethod · 0.85
searchHTTPMethod · 0.85
searchHTTPMethod · 0.85
searchGRPCMethod · 0.85
queryRangeGRPCMethod · 0.85
queryRangeHTTPMethod · 0.85
queryInstantGRPCMethod · 0.85
queryInstantHTTPMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected