opentelemetry-js/examples/grpc_dynamic_codegen
Daniel Dyla 02c1d66b76
chore: update examples to use register (#848)
2020-03-12 16:50:22 -04:00
..
protos gRPC example using proto-loader (#385) 2019-10-18 15:31:29 -07:00
README.md gRPC example using proto-loader (#385) 2019-10-18 15:31:29 -07:00
capitalize_client.js feat: lint examples (#649) 2020-01-24 08:03:04 -05:00
capitalize_server.js update examples and getting started for provider and api package (#750) 2020-02-05 10:44:05 -08:00
package.json chore: post release update (#766) 2020-02-06 10:59:56 -08:00
tracer.js chore: update examples to use register (#848) 2020-03-12 16:50:22 -04:00

README.md

Overview

Our service takes in a payload containing bytes and capitalizes them.

Using OpenTelemetry gRPC Instrumentation, we can collect traces of our system and export them to the backend of our choice (we can use Zipkin or Jaeger for this example), to give observability to our distributed systems.

This is the dynamic code generation variant of the gRPC examples. Code in these examples is generated at runtime using Protobuf.js.

Installation

$ # from this directory
$ npm install

Setup Zipkin Tracing or Setup Jaeger Tracing

Run the Application

Zipkin

  • Run the server

    $ # from this directory
    $ npm run zipkin:server
    
  • Run the client

    $ # from this directory
    $ npm run zipkin:client
    

Jaeger

  • Run the server

    $ # from this directory
    $ npm run jaeger:server
    
  • Run the client

    $ # from this directory
    $ npm run jaeger:client
    

LICENSE

Apache License 2.0