EmitAllBatches sends all the batches that would normally be sent at some interval when using EmitBatches.
(c JaegerClient)
| 138 | // EmitAllBatches sends all the batches that would normally be sent at some |
| 139 | // interval when using EmitBatches. |
| 140 | func (t *TraceInfo) EmitAllBatches(c JaegerClient) error { |
| 141 | err := t.EmitBatches(context.Background(), c) |
| 142 | if err != nil { |
| 143 | return err |
| 144 | } |
| 145 | |
| 146 | for t.LongWritesRemaining() > 0 { |
| 147 | t.Done() |
| 148 | |
| 149 | err := t.EmitBatches(context.Background(), c) |
| 150 | if err != nil { |
| 151 | return err |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | return nil |
| 156 | } |
| 157 | |
| 158 | func (t *TraceInfo) generateRandomInt(min, max int64) int64 { |
| 159 | min++ |
no test coverage detected