grpc-opentracing
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

grpc-opentracing

npm version npm downloads

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

Readme

Keywords

Package Sidebar

Install

npm i grpc-opentracing

Weekly Downloads

10

Version

2.1.1

License

MIT

Unpacked Size

7.74 kB

Total Files

8

Last publish

Collaborators

  • dmitriy.litichevskiy