Skip to content

Files

Latest commit

acd6a6f · Mar 17, 2022

History

History
 
 

Overview

OpenTelemetry Restify 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 Restify API. All generated spans include following attributes:

  • http.route: resolved route;
  • restify.method: server method used to register the handler. One of use, pre, del, get, head, opts, post, put or patch;
  • restify.type: either middleware or request_handler;
  • restify.version: restify 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