simple tracing to wavefront in your node application with Opentelemetry.
This repository will show you how to trace your Node.js app to Wavefront (Longboard VMware).
You need to know about the following important things:
-
Express.js: Express.js is a popular web application framework for Node.js. It provides a robust set of features and tools for building web applications and APIs. It simplifies the process of creating server-side applications and handling HTTP requests and responses.
-
Docker: Docker is an open-source platform that allows you to automate the deployment, scaling, and management of applications using containerization. Containers are lightweight, isolated environments that contain all the necessary dependencies and libraries for running an application. Docker enables consistent and efficient application deployment across different environments.
-
@opentelemetry modules: @opentelemetry modules refer to a collection of open-source modules and tools for implementing observability in applications. OpenTelemetry is a vendor-agnostic framework used for instrumenting, generating, collecting, and exporting telemetry data (such as traces and metrics) from applications. These modules provide integration with various frameworks, libraries, and platforms to enable distributed tracing and monitoring capabilities.
- docker-compose.yaml
- otel-collector-config.yaml
Important Please make sense of these files and look at each file or folder to this repository.
npm install
docker-compose up --build
- replace package.json script start to
- "scripts": { "start": "node -r ./tracing7.js app.js", }
- delete or comment line 1 in file app.js
-
// const tracer = require("./tracing")("hello-world-service");
npm install
docker-compose up --build
main concept for this repository: https://github.com/obs-nebula/frontend-react
OpenTelemetry SDK: https://open-telemetry.github.io/opentelemetry-js/
OpenTelemetry: https://opentelemetry.io