https://github.com/prisma/tracing-tutorial-prisma
Reference code for "Get Started With Tracing Using OpenTelemetry and Prisma Tracing".
https://github.com/prisma/tracing-tutorial-prisma
express nodejs opentelemetry prisma tracing
Last synced: 3 months ago
JSON representation
Reference code for "Get Started With Tracing Using OpenTelemetry and Prisma Tracing".
- Host: GitHub
- URL: https://github.com/prisma/tracing-tutorial-prisma
- Owner: prisma
- Created: 2022-08-14T06:13:25.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-26T21:14:47.000Z (almost 4 years ago)
- Last Synced: 2025-06-22T01:47:03.477Z (about 1 year ago)
- Topics: express, nodejs, opentelemetry, prisma, tracing
- Language: TypeScript
- Homepage: https://www.prisma.io/blog/tracing-tutorial-prisma-pmkddgq1lm2
- Size: 146 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Prisma tracing tutorial
Reference code for ["Get Started With Tracing Using OpenTelemetry and Prisma Tracing"](https://prisma.io/blog/tracing-tutorial-prisma-pmkddgq1lm2).
This branch reflects the code at the _end of the tutorial_.
For reference express server used at the _beginning of the tutorial_ go to the [`tracing-begin`](https://github.com/TasinIshmam/tracing-tutorial-prisma/tree/tracing-begin) branch.
### Installation
1. Clone this branch: `git clone git@github.com:TasinIshmam/tracing-tutorial-prisma.git`.
2. Navigate to the cloned directory: `cd tracing-tutorial-prisma`.
3. Install dependencies: `npm install`.
4. Run migrations: `npx prisma migrate dev`.
5. Start jaeger: `docker-compose up -d`
6. Start the server: `npm run dev`.
7. Test out the example endpoint: [http://localhost:4000/users/random](http://localhost:4000/users/random).
8. See the generated traces in Jaeger: [http://localhost:16686](http://localhost:16686).