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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file kirami_plugin_sentry-0.1.0.tar.gz.

File metadata

  • Download URL: kirami_plugin_sentry-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for kirami_plugin_sentry-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2c1029f958bc0f4e1391b3e42d6cf32ff177c83d2feeed97e7fd52464dc54562
MD5 69ba5053bfed300d768152e7fbf3f4fb
BLAKE2b-256 a8e015948c95c4760eab0b06d479ec774a4bdea7de6d689bea641685353c3c1f

See more details on using hashes here.

File details

Details for the file kirami_plugin_sentry-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kirami_plugin_sentry-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a288db7bb348419aa78b58538a541d3705af4fc23f0fff008fff02b9ff31c107
MD5 7dd3f974debe9bf0991332c4480fd203
BLAKE2b-256 8c67dd95ebf3dba0d079ec1e85f6359c30a75155e78d359a468b83cb59edccb4

See more details on using hashes here.

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