grpc-opentracing

Interceptors for client and server to track calls through opentracing

Usage no npm install needed!

<script type="module">
  import grpcOpentracing from 'https://cdn.skypack.dev/grpc-opentracing';
</script>

README

grpc-opentracing

npm version npm downloads dependencies dev dependencies Build Status Coverage Status

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] });