简体   繁体   English

如何在没有 Sentry-SDK 的情况下向 Sentry 发送事件?

[英]How to send event to Sentry without Sentry-SDK?

I need to run Python script without external dependencies so I can not use SDK for python. I also do not want call external tools like sentry-cli from script for that purpouse我需要在没有外部依赖项的情况下运行 Python 脚本,所以我不能将 SDK 用于 python。我也不想为此目的从脚本调用外部工具,如 sentry-cli

I need simply send two events to specific Project, using DSN.我只需要使用 DSN 将两个事件发送到特定项目。

I can not google it or find in API reference (there only methods about listing\retrivieng issues/events but not sending them)我无法用谷歌搜索或在API 参考中找到它(只有关于列出\检索问题/事件但不发送它们的方法)

So my question is how to send event to sentry project using DSN?所以我的问题是如何使用 DSN 将事件发送到哨兵项目?

The same way any of the SDKs does: post the data to Sentry API for the given DSN.与任何 SDK 的方式相同:将数据发布到给定 DSN 的 Sentry API。 There are multiple sources you can use to build that:您可以使用多种来源来构建它:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM