openzipkin/zipkin-js

Add error handlers

Open

#7 aperta il 3 giu 2016

Vedi su GitHub
 (1 commento) (2 reazioni) (0 assegnatari)JavaScript (167 fork)auto 404
enhancementhelp wanted

Metriche repository

Star
 (569 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

It should be possible for applications to handle errors in the loggers, by adding e.g.

kafkaLogger.on('error', err => console.error('oops', err));

to the code. That means we need to forward the error events from the underlying implementations.

Another alternative is to let users provide their own scribe client or kafka client etc., and let them add error handling directly on their underlying client.

Guida contributor