Commit Graph

11 Commits

Author SHA1 Message Date
vyzo 40e5a49d1b store the remote trace peer address in the peerstore
that way we don't have to connect every time we open the stream.
2019-11-19 00:26:06 +02:00
vyzo 7a5aaa8d1c don't blanket wait for 1s to accumulate a batch.
Instead check the batch size and poll every 100ms (up to 1s) until the
minimum batch size is accumulated.
2019-11-19 00:18:10 +02:00
vyzo 24a1181b9a move niling of trace buffer to the end
this avoids holding on memory while we are waiting.
2019-11-19 00:07:57 +02:00
vyzo 91527e2d10 lossy tracing for remote tracers
Don't accumulate memory if the tracer is being slow or unavailable, just drop the trace and log.
2019-11-18 22:01:31 +02:00
vyzo cce30a4d6a reset remote tracer stream on errors 2019-11-18 17:33:53 +02:00
vyzo abe4763c01 compress entire stream in remote tracer 2019-11-18 17:13:43 +02:00
vyzo 2fc5518a00 remote tracer: wait a second to accumulate batches 2019-11-15 20:42:04 +02:00
vyzo 57ea27eef7 remote tracer 2019-11-15 20:42:04 +02:00
vyzo 0aa629c79c use *pb.TraceEvent as argument for Trace in the EventTracer interface 2019-11-15 20:42:04 +02:00
vyzo f134d65848 add protobuf file tracer 2019-11-15 20:42:04 +02:00
vyzo 8ff321c529 move tracer implementation to its own file 2019-11-15 20:42:04 +02:00