Skip to main content

在 Sentry.io 上进行 KiramiBot 服务日志查看、错误处理,以及群聊消息提醒

Project description

KiramiBotPluginLogo

kirami-plugin-sentry

✨在 Sentry.io 上进行 KiramiBot 服务日志查看、错误处理 ✨

license pypi python

📖 介绍

在 Sentry.io 上进行 KiramiBot 服务日志查看、错误处理,以及群聊消息提醒

💿 安装

在 KiramiBot 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令

pip
pip install kirami-plugin-sentry
pdm
pdm add kirami-plugin-sentry
poetry
poetry add kirami-plugin-sentry
conda
conda install kirami-plugin-sentry

打开 KiramiBot 项目根目录下的配置文件, 以 kirami.toml 为例,在 [plugin] 部分追加写入

plugins = ["kiramit_plugin_sentry"]

⚙️ 配置

在 KiramiBot 项目的配置文件中添加下表中的必填配置

配置项 必填 默认值 说明
sentry_dsn Sentry Docs
sentry_environment None Sentry Docs
sentry_default_integrations False sentry-python #653

🎉 使用

填写必须配置项 sentry_dsn ,即刻开始 sentry 之旅!

指令表

本插件提供了一个 仅SUPERUSERS能使用的命令。可以用来快捷查看错误信息

指令 权限 需要@ 范围 说明
追踪 主人 当前会话 回复报错消息
追踪 主人 私聊/群聊 追踪 <msg_id>

<msg_id> 代表这是一个必填的参数,即用 <> 包裹的文本。

效果图

理论上,这里应该有几张效果图

如果你觉得这个插件很赞, 欢迎返图!

📄 许可证

本项目使用 MIT 许可证开源

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kirami_plugin_sentry-0.1.0.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

kirami_plugin_sentry-0.1.0-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page