| 96 | } |
| 97 | |
| 98 | func (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 | |
| 111 | func (h *TempoHarness) WriteTempoProtoTraces(traces *tempopb.Trace, tenant string) error { |
| 112 | b, err := traces.Marshal() |