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

Method WriteJaegerBatch

integration/util/harness_api_writes.go:98–109  ·  view source on GitHub ↗
(batch *thrift.Batch, tenant string)

Source from the content-addressed store, hash-verified

96}
97
98func (h *TempoHarness) WriteJaegerBatch(batch *thrift.Batch, tenant string) error {
99 endpoint := h.Services[ServiceDistributor].Endpoint(4317)
100 exporter, err := NewJaegerToOTLPExporterWithAuth(endpoint, tenant, "", false)
101 if err != nil {
102 return err
103 }
104 if err := exporter.EmitBatch(context.Background(), batch); err != nil {
105 return err
106 }
107 h.recordWrite()
108 return nil
109}
110
111func (h *TempoHarness) WriteTempoProtoTraces(traces *tempopb.Trace, tenant string) error {
112 b, err := traces.Marshal()

Callers 15

TestIngestionLimitsFunction · 0.80
TestQueryLimitsFunction · 0.80
TestQueryRateLimitsFunction · 0.80
TestQueryRangeExemplarsFunction · 0.80
TestQueryRangeMaxSeriesFunction · 0.80
TestQueryRangeEndCutoffFunction · 0.80
TestTagEndpointsFunction · 0.80

Calls 3

recordWriteMethod · 0.95
EmitBatchMethod · 0.65

Tested by 15

TestIngestionLimitsFunction · 0.64
TestQueryLimitsFunction · 0.64
TestQueryRateLimitsFunction · 0.64
TestQueryRangeExemplarsFunction · 0.64
TestQueryRangeMaxSeriesFunction · 0.64
TestQueryRangeEndCutoffFunction · 0.64
TestTagEndpointsFunction · 0.64