butorov / sentry-telegram

Plugin for Sentry which allows sending notification via Telegram messenger.
MIT License
250 stars 64 forks source link

Doesnt work on 22.7.0.dev0 #49

Closed 50l3r closed 6 months ago

50l3r commented 2 years ago

Versión: 0.4.0 Sentry Version: 22.7.0.dev0

I install & setup Legacy Integration with specific token & chatid but when i try to do a test it doesnt send message.

Olegt0rr commented 2 years ago

This repo is abandoned. Use this fork: https://github.com/vortland/sentry-telegram

50l3r commented 2 years ago

Much thanks. This repo works :)

50l3r commented 2 years ago

I see that test message works but only recieve sentry error via email. Telegram Notifications Python3 its enabled on my sentry project but dont send errors.

minhhuy1501 commented 2 years ago

It's worked from https://github.com/FarazFe/sentry-telegram Sentry sent an error to telegram when event is captured

Elfimova commented 2 years ago

It's worked from https://github.com/FarazFe/sentry-telegram Sentry sent an error to telegram when event is captured

Have Sentry 22.10.0. Same error. Test message works, but real errors are ignored. Could anyone fix it?

Izerrion commented 1 year ago

Seems for different sentry versions it is enough to just perform the following steps: pip install sentry-telegram (or any other updated pip package) docker-compose restart web worker cron sentry-cleanup

For us, however, worked the "true" way of plugins installations and only then all alerts started working correctly: (not only the test notification)

1) place the archive of the plugin inside the requirements.txt file inside the sentry docker directory, e.g: .../sentry/sentry/requirements.txt: https://github.com/FarazFe/sentry-telegram/archive/refs/tags/0.5.0.zip

Advice taken from here.

2) Execute steps from official sentry docs and rebuild all containers in docker-compose:

""" sentry/enhance-image.sh—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. """

3) Proceed with plugin configuration as stated inside this repo. After that notifications should be sent correctly. Don't forget to use updated forks of the plugin depending on your sentry version.

ellyx13 commented 10 months ago

Sentry version: Sentry 24.1.0.dev0

I try add this repo into file sentry/enhance-image.sh:

#!/bin/bash 

pip install sentry-telegram-notification

And i was use Test Plugin in LEGACY INTEGRATIONS successfully, it sent my telegram channel. But when i create error 500 in backend, it didn't send notification to telegram channel, but sentry still receive this error.

Izerrion commented 10 months ago

I recommend using webhooks, because this plugin is not actively maintained.

vocolboy commented 8 months ago

Hello guys, I rewrite a new one plugin :)

tested on Sentry 24.2.0 & 24.3.0

https://github.com/tianci-sh/sentry-telegram