1
0
Fork 0

Initial commit

This commit is contained in:
Vojtěch Mareš 2023-09-26 21:43:36 +00:00
commit 7724a7614e
24 changed files with 1653 additions and 0 deletions

49
README.md Normal file
View file

@ -0,0 +1,49 @@
# Sentry Kubernetes Demo
This demo is made for a NodeJS app, but the same applies to other languages and runtimes.
# Infra
This repository contains Terraform definitions for Kubernetes on Digital Ocean.
DNS is provided by Cloudflare with your domain.
## Kubernetes
- 3 node cluster (each node is 2 CPU and 4Gi RAM)
# App
Simple NodeJS (Express) application with a couple endpoints to demonstrate Sentry basics - see [NodeJS example app for Sentry]()
## Endpoints
### /hello
- Status code: `200`
- Response: `World`
- No Sentry entry
### /exception
Caught exception
- Status code: `500`
- No response
- Caught exception in Sentry
### /uncaught-exception
Uncaught exception
- Status code: `500`
- No response
- Uncaught exception in Sentry
### /error-message
A custom message sent to Sentry
- Status code: `500`
- No response
- Custom message in Sentry