aligned_layer icon indicating copy to clipboard operation
aligned_layer copied to clipboard

Remove unfinished traces from the Telemetry store

Open avilagaston9 opened this issue 1 year ago • 1 comments

When the Batcher cancels a batch, we don't finalize the trace in case the batch has already been sent and the Aggregator receives it. However, if the batch was actually canceled, the trace metadata will remain in the store indefinitely.

avilagaston9 avatar Nov 22 '24 15:11 avilagaston9

IMO, we should have two traces: one for the Batcher and another for the Aggregator. This approach removes the dependency between them and also enables the possibility of registering the Aggregator spans when running more than one Batcher simultaneously.

avilagaston9 avatar Nov 22 '24 15:11 avilagaston9