Skip to main content
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.

Metadata

Release files for kirami-plugin-sentry 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kirami-plugin-sentry 0.1.0
File Size Uploaded
kirami_plugin_sentry-0.1.0.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kirami-plugin-sentry 0.1.0
File Interpreter ABI Platform
kirami_plugin_sentry-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / kirami_plugin_sentry-0.1.0.tar.gz

Download URL kirami_plugin_sentry-0.1.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2c1029f958bc0f4e1391b3e42d6cf32ff177c83d2feeed97e7fd52464dc54562
BLAKE2b-256 checksum
How to use checksums
a8e015948c95c4760eab0b06d479ec774a4bdea7de6d689bea641685353c3c1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / kirami_plugin_sentry-0.1.0-py3-none-any.whl

Download URL kirami_plugin_sentry-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a288db7bb348419aa78b58538a541d3705af4fc23f0fff008fff02b9ff31c107
BLAKE2b-256 checksum
How to use checksums
8c67dd95ebf3dba0d079ec1e85f6359c30a75155e78d359a468b83cb59edccb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page