Skip to content

This repo contains the code for a sample application built using MEVN stack. It demonstrates how to use OpenTelemetry and SigNoz to monitor a full-stack application.

Notifications You must be signed in to change notification settings

makeavish/mevn-opentelemetry-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mevn-opentelemetry-example

Installing packages

Clone the repo locally & follow these steps

Server:

Get into /server folder & install packages

cd server
npm i

Client:

Get into /client folder & install packages

cd client
npm i

Running the application

Get into the server folder.

cd server

Before running the server, create a MongoDB connection and get the mongodb_uri. Set the MONGO_URI & PORT in .env (check .env.exmaple for reference) Finally, run the following command to start both server and client

npm run dev

Running SigNoz

Get into ./signoz folder.

cd signoz/deploy
./install.sh

Run the following commands to set these env variables

export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4317"
export OTEL_RESOURCE_ATTRIBUTES=service.name=mevn-signoz

About

This repo contains the code for a sample application built using MEVN stack. It demonstrates how to use OpenTelemetry and SigNoz to monitor a full-stack application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 73.3%
  • Go 22.5%
  • Shell 1.7%
  • JavaScript 1.3%
  • Makefile 0.4%
  • Vue 0.2%
  • Other 0.6%