Commit Graph

23 Commits

Author SHA1 Message Date
vyzo 06a12f17b7 reduce log verbosity; debug mostly 2020-09-01 20:42:50 +03:00
vyzo 2b5243c72f downgrade trace buffer overflow log to debug 2020-07-31 19:15:31 +03:00
Raúl Kripalani ae55bf9603 upgrade deps + interoperable uvarint delimited writer/reader. 2020-07-30 14:00:54 +03:00
Diederik Loerakker 99507107b6
Merge pull request #359 from protolambda/optional-sig-origin-seq
Signing policy + optional Signature, From and Seqno
2020-07-23 08:47:47 +03:00
vyzo 438dd9e27e downgrade tracer Error logs to Warn 2020-05-05 21:10:14 +03:00
vyzo ce9a0b7edf use log.Warn instead of Warning 2020-05-05 21:10:14 +03:00
vyzo 1901383099 implement extended validator support 2020-05-04 09:42:20 +03:00
vyzo a613f097ed fix close race in basicTracer 2020-04-21 21:42:11 +03:00
vyzo 97519bf76c better handling of message originating from self but forwarded by another peer 2020-04-18 11:09:06 +03:00
vyzo 1c4f0920fe use named constants for tracing message rejection reasons 2020-04-18 11:09:06 +03:00
vyzo 7065297ac6 nits and beauty 2019-11-19 02:28:23 +02:00
vyzo cd7f42e1d7 make tracer.Close safer 2019-11-19 00:29:23 +02:00
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