grpc-opentracing
Interceptors for client and server to track calls through opentracing
Install
npm i grpc-opentracing
Usage
const { clientInterceptor, serverInterceptor } = require("grpc-opentracing");
/*...*/
const server = new GrpcHostBuilder()
/*...*/
.addInterceptor(serverInterceptor)
/*...*/
.bind(grpcBind)
.build();
/*...*/
const client = new ServerClient(grpcBind, grpc.credentials.createInsecure(), { interceptors: [clientInterceptor] });