• Stars
    star
    7,130
  • Rank 5,217 (Top 0.2 %)
  • Language
    Shell
  • License
    Other
  • Created about 8 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sentry, feature-complete and packaged up for low-volume deployments and proofs-of-concept

Self-Hosted Sentry nightly

Official bootstrap for running your own Sentry with Docker.

Requirements

  • Docker 19.03.6+
  • Compose 2.0.1+
  • 4 CPU Cores
  • 8 GB RAM
  • 20 GB Free Disk Space

Setup

Installation

To get started with all the defaults, simply clone the repo and run ./install.sh in your local check-out. Please also read the section below about monitoring. Sentry uses Python 3 by default since December 4th, 2020 and Sentry 21.1.0 is the last version to support Python 2.

During the install, a prompt will ask if you want to create a user account. If you require that the install not be blocked by the prompt, run ./install.sh --skip-user-prompt.

Thinking of not managing this yourself? Check out the SaaS migration docs or contact us for help.

Please visit our documentation for everything else.

Customize DotEnv (.env) file

Environment specific configurations can be done in the .env.custom file. It will be located in the root directory of the Sentry installation, and if it exists then .env will be ignored entirely.

By default, there exists no .env.custom file. In this case, you can manually add this file by copying the .env file to a new .env.custom file and adjust your settings in the .env.custom file.

Please keep in mind to check the .env file for changes, when you perform an upgrade of Sentry, so that you can adjust your .env.custom accordingly, if required, as .env is ignored entirely if .env.custom is present.

Enhance Sentry image

To install plugins and their dependencies or make other modifications to the Sentry base image, copy sentry/enhance-image.example.sh to sentry/enhance-image.sh and add necessary steps there. For example, you can use apt-get to install dependencies and use pip to install plugins.

After making modifications to sentry/enhance-image.sh, run ./install.sh again to apply them.

Tips & Tricks

Event Retention

Sentry comes with a cleanup cron job that prunes events older than 90 days by default. If you want to change that, you can change the SENTRY_EVENT_RETENTION_DAYS environment variable in .env or simply override it in your environment. If you do not want the cleanup cron, you can remove the sentry-cleanup service from the docker-compose.ymlfile.

Installing a specific SHA

If you want to install a specific release of Sentry, use the tags/releases on this repo.

We continuously push the Docker image for each commit made into Sentry, and other services such as Snuba or Symbolicator to our Docker Hub and tag the latest version on master as :nightly. This is also usually what we have on sentry.io and what the install script uses. You can use a custom Sentry image, such as a modified version that you have built on your own, or simply a specific commit hash by setting the SENTRY_IMAGE environment variable to that image name before running ./install.sh:

SENTRY_IMAGE=getsentry/sentry:83b1380 ./install.sh

Note that this may not work for all commit SHAs as this repository evolves with Sentry and its satellite projects. It is highly recommended to check out a version of this repository that is close to the timestamp of the Sentry commit you are installing.

Using Linux

If you are using Linux and you need to use sudo when running ./install.sh, make sure to place the environment variable after sudo:

sudo SENTRY_IMAGE=us.gcr.io/sentryio/sentry:83b1380 ./install.sh

Where you replace 83b1380 with the sha you want to use.

Self-Hosted Monitoring

We'd love to catch errors in self-hosted so you don't run into them, and so we can fix them faster! When you run ./install.sh, you will be prompted to select whether to opt in or out of our monitoring. If you opt into our monitoring, we will send information to our own self-hosted Sentry instance for development and debugging purposes. We may collect:

  • OS username
  • IP address
  • install log
  • runtime errors in Sentry
  • performance data

Thirty (30) day retention. No marketing. Privacy policy at sentry.io/privacy.

Starting with the 22.10.0 release in October, we will require those running the Sentry installer to choose to opt in or out. If you are running the installer under automation, you may want to set REPORT_SELF_HOSTED_ISSUES or pass --(no-)report-self-hosted-issues to the installer accordingly.

More Repositories

1

sentry

Developer-first error tracking and performance monitoring
Python
36,992
star
2

sentry-javascript

Official Sentry SDKs for JavaScript
TypeScript
7,600
star
3

responses

A utility for mocking out the Python Requests library.
Python
4,030
star
4

sentry-php

The official PHP SDK for Sentry (sentry.io)
PHP
1,779
star
5

raven-python

Raven is the legacy Python client for Sentry (getsentry.com) β€” replaced by sentry-python
Python
1,678
star
6

sentry-python

The official Python SDK for Sentry.io
Python
1,533
star
7

sentry-react-native

Official Sentry SDK for React-Native
TypeScript
1,509
star
8

sentry-laravel

The official Laravel SDK for Sentry (sentry.io)
PHP
1,157
star
9

sentry-java

A Sentry SDK for Java, Android and other JVM languages.
Kotlin
1,097
star
10

sentry-ruby

Sentry SDK for Ruby
Ruby
909
star
11

sentry-go

The official Go SDK for Sentry (sentry.io)
Go
864
star
12

sentry-cli

A command line utility to work with Sentry.
Rust
833
star
13

milksnake

A setuptools/wheel/cffi extension to embed a binary data in wheels
Python
764
star
14

sentry-cocoa

The official Sentry SDK for iOS, tvOS, macOS, watchOS.
Objective-C
762
star
15

sentry-dart

Sentry SDK for Dart and Flutter
Dart
714
star
16

sentry-symfony

The official Symfony SDK for Sentry (sentry.io)
PHP
673
star
17

sentry-webpack-plugin

Repo moved to https://github.com/getsentry/sentry-javascript-bundler-plugins. Please open any issues/PRs there.
JavaScript
662
star
18

freight

Freight is a service which aims to make application deployments better.
Python
610
star
19

sentry-elixir

The official Elixir SDK for Sentry (sentry.io)
Elixir
597
star
20

raven-go

Sentry client in Go
Go
560
star
21

sentry-dotnet

Sentry SDK for .NET
C#
551
star
22

sentry-rust

Official Sentry SDK for Rust
Rust
515
star
23

raven-node

A standalone (Node.js) client for Sentry
JavaScript
457
star
24

symbolic

Stack trace symbolication library written in Rust
Rust
420
star
25

action-release

GitHub Action for creating a release on Sentry
TypeScript
410
star
26

sentry-kubernetes

Kubernetes event reporter for Sentry
Python
408
star
27

sentry-native

Sentry SDK for C, C++ and native applications.
C
354
star
28

docker-sentry

Docker Official Image packaging for Sentry
Python
348
star
29

pdb

A parser for Microsoft PDB (Program Database) debugging information
Rust
342
star
30

symbolicator

Native Symbolication as a Service
Rust
328
star
31

sentry-docs

Sentry's documentation (and tools to build it)
MDX
319
star
32

rb

Routing and connection management for Redis in Python
Python
300
star
33

sentry-php-sdk

This is a meta package to ship sentry-php with a recommend http client.
298
star
34

spotlight

Your Universal Debug Toolbar
TypeScript
290
star
35

snuba

Search the seas for your lost treasure.
Python
272
star
36

relay

Sentry event forwarding and ingestion service.
Rust
246
star
37

raven-csharp

Superseded by: https://github.com/getsentry/sentry-dotnet
C#
232
star
38

sentry-electron

The official Sentry SDK for Electron
TypeScript
217
star
39

sentry-plugins

Official plugins for Sentry server
Python
212
star
40

zeus

WIP: A dashboard for CI
Python
209
star
41

rust-sourcemap

A library for rust that implements basic sourcemap handling
Rust
188
star
42

sentry-unity

Development of Sentry SDK for Unity
C#
187
star
43

action-github-app-token

Gets a GitHub auth token for a GitHub App installation
TypeScript
179
star
44

sentry-wizard

Sentry Project Setup Wizard
TypeScript
139
star
45

sentry-slack

DEPRECATED Slack integration for Sentry
Python
135
star
46

sentry-fastlane-plugin

Official fastlane plugin for Sentry
Ruby
131
star
47

sentry-android-gradle-plugin

Gradle plugin for Sentry Android. Upload proguard, debug files, and more.
Kotlin
130
star
48

action-git-diff-suggestions

This GitHub Action will take the current git changes and apply them as GitHub code review suggestions
TypeScript
122
star
49

craft

The universal Sentry release CLI πŸš€
TypeScript
118
star
50

examples

Collection of all different kinds of Sentry SDKs and integrations
C#
118
star
51

sentry-javascript-bundler-plugins

JavaScript Bundler Plugins for Sentry
TypeScript
115
star
52

sentry-capacitor

The official Sentry SDK for Capacitor
TypeScript
114
star
53

sentry-kotlin-multiplatform

Sentry SDK for Kotlin Multiplatform
Kotlin
104
star
54

raven-objc

This SDK is deprecated. Use https://github.com/getsentry/sentry-cocoa
Objective-C
98
star
55

sentry-clj

Sentry SDK for Clojure
Clojure
98
star
56

sentry-jira

A Plugin for sentry that lets you create JIRA issues
Python
95
star
57

raven-aiohttp

An aiohttp transport for raven-python
Python
90
star
58

sentry-android

MOVED: https://github.com/getsentry/sentry-java
87
star
59

pytest-responses

py.test integration for responses
Python
83
star
60

sentry-github

A Sentry extension which integrates with GitHub.
Python
79
star
61

libsourcemap

DEPRECATED: Implements efficient sourcemap processing for Python in Rust
Rust
78
star
62

sentry-rrweb

Moved to: https://github.com/getsentry/sentry-javascript/tree/master/packages/replay#sentry-session-replay
TypeScript
73
star
63

sentry-unreal

Unreal Engine
C++
71
star
64

sentry-cordova

The official Sentry SDK for Cordova
TypeScript
68
star
65

sentry-dart-plugin

A Dart Build Plugin that uploads debug symbols for Android, iOS/macOS and source maps for Web to Sentry via sentry-cli
Dart
63
star
66

sourcemaps.io

Web-based Source Map validator
TypeScript
58
star
67

breakpad-tools

Prebuilt tools and examples to work with Breakpad's minidumps
Makefile
53
star
68

sentry-webhooks

An extension for Sentry which allows creation various web hooks.
Python
52
star
69

dotnet-assembly-alias

Tool to rename .NET assemblies and references
C#
50
star
70

sentry-netlify-build-plugin

The Sentry Netlify build plugin automatically notifies Sentry of new releases being deployed to your site.
JavaScript
45
star
71

develop

TypeScript
43
star
72

babel-gettext-extractor

A fork of babel-gettext-plugin that works with older versions of node and supports comment and location extraction
JavaScript
43
star
73

sentry-mobile-release-health-app

Sentry Mobile App
Dart
42
star
74

sentry-xamarin

Sentry for Xamarin Native and Xamarin.Forms
C#
41
star
75

raven-swift

This SDK is deprecated. Use https://github.com/getsentry/sentry-cocoa
40
star
76

pytest-sentry

Track flaky tests in Sentry
Python
39
star
77

sentry-auth-github

GitHub SSO provider for Sentry
Python
39
star
78

action-visual-snapshot

Save and compare your visual snapshots
TypeScript
38
star
79

sentry-fullstory

The Sentry-FullStory integration seamlessly integrates the Sentry and FullStory platforms.
TypeScript
37
star
80

sentry-phabricator

A Sentry extension which integrates with Phabricator
Python
36
star
81

platformicons

A platform and framework icon font.
TypeScript
36
star
82

arroyo

A library to build streaming applications that consume from and produce to Kafka.
Python
35
star
83

sentry-auth-google

Google Apps SSO provider for Sentry
Python
34
star
84

integration-platform-example

An example kanban application which explores the ways developers can build apps on Sentry's integration platform
TypeScript
32
star
85

unity

Unity SDK UPM package
Objective-C
31
star
86

vanguard

TypeScript
29
star
87

profiling-node

The code for this repo now lives in https://github.com/getsentry/sentry-javascript/tree/develop/packages/profiling-node
TypeScript
28
star
88

sentry-vscode

VSCode editor integration for Sentry
TypeScript
28
star
89

probot-report

Probot app that sends periodic reminder emails for outstanding PR reviews
JavaScript
28
star
90

hackweek-coda

A queue thing with a sprinkle of Italian
Python
27
star
91

sentry-replay

Moved to http://github.com/getsentry/sentry-javascript
TypeScript
27
star
92

symbol-collector

Clients and Server to collect system symbols.
C#
27
star
93

perl-raven

A perl sentry client
Perl
26
star
94

sentry_airflow

Airflow integration with Sentry (https://sentry.io)
Python
26
star
95

cloud-run-typescript-template

Template for Google Cloud Run (typescript)
JavaScript
24
star
96

symsynd

C++
23
star
97

sentry-relay-attic

A relay server for Sentry (https://getsentry.com)
Rust
23
star
98

freight-cli

A command line interface to Freight
Python
22
star
99

xds

xDS service for Envoy
Go
22
star
100

gib-potato

More Potato, more awesome πŸ₯”
PHP
21
star