opentelemetry-js/examples/grpc_dynamic_codegen
Daniel Dyla 18c6aa4f19 Named Tracers / Tracer Registry (#582)
* feat: spike of named tracer registry

* chore: mysql/mongo tracer registry support

* fix: lint

* chore: add getTracer back

* chore: change default tracer name to empty string

* fix: lint

* chore: update examples for registry

* chore(tracer-registry): make name required

* chore: lint

* chore: update examples for required tracer name

* chore: remove unused tracer delegate

* chore: remove references to basic tracer

* chore: remove references to NodeTracer

* chore: update xhr for tracer registry

* chore: update tracer names to match package names

* chore: add version script to all packages

* chore: update plugins to use version script

* chore: add jsdoc to noop tracer registry

* chore: update ioredis for tracer registry

* chore: update pg pool for tracer registry

* fix: lint

* chore: fix tests

* chore: lint

* chore: lint

Co-authored-by: Mayur Kale <mayurkale@google.com>
2020-01-09 08:29:38 -08: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 Named Tracers / Tracer Registry (#582) 2020-01-09 08:29:38 -08:00
capitalize_server.js Named Tracers / Tracer Registry (#582) 2020-01-09 08:29:38 -08:00
package.json chore: 0.3.2 (patch) release proposal (#659) 2020-01-03 12:27:10 -08:00
setup.js Named Tracers / Tracer Registry (#582) 2020-01-09 08:29:38 -08: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