️This article has been over 3 years since the last update.
Sentry is an open source Application Monitoring Service for app crashes. It’s also free self-hosted available.
When need self-hosted
- You have machines on private cloud with deep pockets.
- You believe you can implement a cheaper solution than the official price.
- Someone can maintain following PaaS/IaaS/SaaS service
- Someone can maintain the complex components.
What is BSL(Business Source License) license
Why BSL?
See here since Nov 7, 2019
These businesses are not using Sentry to improve how they develop software; they’re lifting its code and assets to build their closed-source products to compete directly with us.
And see twitter
Nearly 100% of Sentry is written by full time employees of Sentry. It’s not a typical open source project.
What you can do
The BSL lets us hit our goals in a clean and low-impact way: it won’t change anyone’s ability to run Sentry at their company
Here is a summary
It’s highly recommended to bundle your business product with vendor neutrral SDK such as OpenTelemetry/Prometheus.
GDPR?
Yes
APM Comparison
Click to show
Compared at Sep 10, 2021
| APM | Sentry | SigNoz |
|---|---|---|
| Self-hosted | Y | Y |
| standards | Open-sourced | OpenTelemetry |
| Server License | BSL | MIT |
| SDK License | Apache2.0 | Apache2.0 |
| backend | python | go |
| ClickHouse | Y | Y |
| distributed tracing | Y | Y |
| logging | Y | Not all |
| Community | Widely & stable | Startup |
| Team size | 100+ | <10 |
| RBAC | Y | N |
| Complexity | High | Low |
| Custom Metric | Out of the box | By Raw Query |
All you need to do is to find a balance between the complexity and out-of-the-box features.
Architecture
https://develop.sentry.dev/architecture/
Here is the requirement when self-hosted
What is Sentry
- Web App
- Asynchronous/Cron Workers
What is Relay
It mostly acts like as a event digest, reads HTTP requests and sends events to kafka.
see flow site
Architecture see at here
What is Snuba
https://getsentry.github.io/snuba/
Similar to Apache Phoenix/Redash/Tabix, a CRUD wrapper for clickhouse
Scalability & High availability Operations
Here is what we need to concert when deployed.