Skip to content

Commit f38748f

Browse files
feyclaude
andcommitted
feat: replace Rollbar with Bugsink via @sentry/node SDK
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f61d8d7 commit f38748f

6 files changed

Lines changed: 1486 additions & 375 deletions

File tree

.env.example

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
ROLLBAR_TOKEN=
1+
SENTRY_DSN=
22
SERVER_MESSAGE=
3+
4+
# Bugsink (локальный сервис для разработки)
5+
BUGSINK_SECRET_KEY=localdev
6+
BUGSINK_SUPERUSER_EMAIL=admin@example.com
7+
BUGSINK_SUPERUSER_PASSWORD=admin

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
![CI status](https://github.com/hexlet-components/devops-example-app/actions/workflows/main.yml/badge.svg) [![Count docker images pulls](https://img.shields.io/docker/pulls/hexletcomponents/devops-example-app.svg)](https://hub.docker.com/r/hexletcomponents/devops-example-app)
44

5-
This is a simple node application that shows on the main page server on which it is running and report errors to [Rollbar](https://rollbar.com/).
5+
This is a simple node application that shows on the main page server on which it is running and report errors to [Bugsink](https://www.bugsink.com/).
66

77
## Usage
88

99
```bash
10-
docker run -p 3000:3000 -e SERVER_MESSAGE="Hexlet Awesome Server" -e ROLLBAR_TOKEN="<your token>" hexletcomponents/devops-example-app
10+
docker run -p 3000:3000 -e SERVER_MESSAGE="Hexlet Awesome Server" -e SENTRY_DSN="<your dsn>" hexletcomponents/devops-example-app
1111
# open http://0.0.0.0:3000 in browser
1212
```
1313

@@ -29,7 +29,7 @@ Edit *.env* file to set up environment variables.
2929

3030
```env
3131
SERVER_MESSAGE="Hexlet Awesome Server"
32-
ROLLBAR_TOKEN=<your token>
32+
SENTRY_DSN=<your bugsink dsn>
3333
```
3434

3535
## Development

docker-compose.override.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,13 @@ services:
1212
ports:
1313
- 80:80
1414
- 443:443
15+
16+
bugsink:
17+
image: bugsink/bugsink:latest
18+
ports:
19+
- 8000:8000
20+
environment:
21+
- SECRET_KEY=${BUGSINK_SECRET_KEY}
22+
- ALLOWED_HOSTS=localhost,bugsink
23+
- SUPERUSER_EMAIL=${BUGSINK_SUPERUSER_EMAIL}
24+
- SUPERUSER_PASSWORD=${BUGSINK_SUPERUSER_PASSWORD}

0 commit comments

Comments
 (0)