appmetrics-zipkin
appmetrics-zipkin copied to clipboard
Make timeout configurable
Problem: on some environments default timeout from tcp-ping probe (5000ms) is not enough.
This PR would replace probe
with ping
and introduced optional timeout
, by default equal to 5000ms as before.
Also there were some problems with tests, caused by latency/delays, when tests are executed on travic-ci.
in waitAndGetTraces
1000ms is not enough to get results, work stable with 2000ms.
Before the request
we need to connect successfully to zipkin. As there is no way we can find it out (event or promise returned) make sense to add startupDelay
to give appmetrics-zipkin
package time to connect.