49 lines
871 B
Markdown
49 lines
871 B
Markdown
# 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
|