Jaeger (Tracing)

Introduction

Jaeger, inspired by Dapper and OpenZipkin, is a distributed tracing system released as open source by Uber Technologies.
It is used for monitoring and troubleshooting microservices-based distributed systems, including:

Installing the exporter

Creating the exporter

Now let’s use the Jaeger exporter:

varcore=require('@opencensus/core');vartracing=require('@opencensus/nodejs');varjaeger=require('@opencensus/exporter-jaeger');varjaegerOptions={serviceName:'opencensus-exporter-jaeger',host:'localhost',port:6832,tags:[{key:'opencensus-exporter-jeager',value:'0.0.1'}],bufferTimeout:10,// time in milliseconds
logger:core.logger.logger('debug'),maxPacketSize:1000};varexporter=newjaeger.JaegerTraceExporter(jaegerOptions);tracing.registerExporter(exporter).start();