idsToString is a helper that converts from generated trace and span IDs to the string version stored in trace message events.
(projectID string)
| 124 | // idsToString is a helper that converts from generated trace and span IDs to |
| 125 | // the string version stored in trace message events. |
| 126 | func (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 | |
| 135 | func (fe *fakeOpenCensusExporter) ExportSpan(vd *trace.SpanData) { |
| 136 | if fe.idCh != nil { |
no test coverage detected