Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distributed Tracing in Node.js with OpenTelemetry and Atatus

Requirements

  • Nodejs >=16
  • MySQL 8
  • serve
  1. In the src/model/index.ts file, MySQL is imported for initializing the database connection."
const initializeDB = (cb) => {
  const sequelize = new Sequelize('db_name', 'username', 'password', {
  	...
  })
  1. Copy the .env.example file to .env in the root directory.

  2. Install all dependencies run below command

npm install
npm install -g serve
  1. Start each service separately using below commands
npm run customers
npm run payment
npm run orders

# run ui using serve
serve ui
  1. Access the application using below urls
http://localhost:3000/
http://localhost:8081/customer/{id}
http://localhost:8080/payment/transfer/id/4?amount=10000

OTel Setup

Install Otelcol-contribute using this link

Atatus collector Configuration

  • you can use collector configuration file atatus-collector.yaml for send OTel data to Atatus.

Run otel-contrib

./otelcol-contrib --config=<Your-Local-path>/atatus-collector.yaml

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages