Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.24 KB

File metadata and controls

45 lines (30 loc) · 1.24 KB

Overview

OpenTelemetry Router Instrumentation allows the user to automatically collect trace data and export them to the backend of choice (we can use Zipkin or Jaeger for this example). This example demonstrates tracing calls made to Router API. All generated spans include following attributes:

  • http.route: resolved route;
  • router.name: the name of the handler or middleware;
  • router.type: either middleware or request_handler;
  • router.version: router version running.

Setup

Setup Zipkin Tracing or Setup Jaeger Tracing

Run the Application

First install the dependencies:

npm install

Zipkin

npm run zipkin:server # Run the server
npm run zipkin:client # Run the client in a separate terminal

Jaeger

npm run jaeger:server # Run the server
npm run jaeger:client # Run the client in a separate terminal

Useful links

LICENSE

Apache License 2.0