MCPcopy
hub / github.com/grpc/grpc-go / idsToString

Method idsToString

gcp/observability/observability_test.go:126–133  ·  view source on GitHub ↗

idsToString is a helper that converts from generated trace and span IDs to the string version stored in trace message events.

(projectID string)

Source from the content-addressed store, hash-verified

124// idsToString is a helper that converts from generated trace and span IDs to
125// the string version stored in trace message events.
126func (tasi *traceAndSpanID) idsToString(projectID string) traceAndSpanIDString {
127 return traceAndSpanIDString{
128 traceID: "projects/" + projectID + "/traces/" + tasi.traceID.String(),
129 spanID: tasi.spanID.String(),
130 isSampled: tasi.isSampled,
131 SpanKind: tasi.spanKind,
132 }
133}
134
135func (fe *fakeOpenCensusExporter) ExportSpan(vd *trace.SpanData) {
136 if fe.idCh != nil {

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected