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

Method WriteTraceInfo

integration/util/harness_api_writes.go:85–96  ·  integration/util/harness_api_writes.go::TempoHarness.WriteTraceInfo
(traceInfo *util.TraceInfo, tenant string)

Source from the content-addressed store, hash-verified

83}
84
85func (h *TempoHarness) WriteTraceInfo(traceInfo *util.TraceInfo, tenant string) error {
86 endpoint := h.Services[ServiceDistributor].Endpoint(4317)
87 exporter, err := NewJaegerToOTLPExporterWithAuth(endpoint, tenant, "", false)
88 if err != nil {
89 return err
90 }
91 if err := traceInfo.EmitAllBatches(exporter); err != nil {
92 return err
93 }
94 h.recordWrite()
95 return nil
96}
97
98func (h *TempoHarness) WriteJaegerBatch(batch *thrift.Batch, tenant string) error {
99 endpoint := h.Services[ServiceDistributor].Endpoint(4317)

Callers 15

TestEncodingsFunction · 0.80
TestInvalidTenantsFunction · 0.80
TestMCPFunction · 0.80
testSearchFunction · 0.80
TestTraceByIDandTraceQLFunction · 0.80
TestHTTPSFunction · 0.80
TestReadMetricsFunction · 0.80
TestFailureModesFunction · 0.80
TestKVStoresFunction · 0.80
TestLiveStoreLookbackFunction · 0.80

Calls 3

recordWriteMethod · 0.95
EmitAllBatchesMethod · 0.80

Tested by 15

TestEncodingsFunction · 0.64
TestInvalidTenantsFunction · 0.64
TestMCPFunction · 0.64
testSearchFunction · 0.64
TestTraceByIDandTraceQLFunction · 0.64
TestHTTPSFunction · 0.64
TestReadMetricsFunction · 0.64
TestFailureModesFunction · 0.64
TestKVStoresFunction · 0.64
TestLiveStoreLookbackFunction · 0.64