Sentry 与 Mongodb 兼容吗?

发布于 2024-12-16 15:33:14 字数 89 浏览 3 评论 0原文

Sentry (python/django) 与 Mongodb 兼容吗?

如果不是,有没有简单的解决方案可以使其兼容?

谢谢你们。

Is Sentry (python/django) compatible with Mongodb?

If not, is there an easy solution to make it compatible?

Thanks guys.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夜声 2024-12-23 15:33:14

Sentry 是建立在关系数据库之上的,因此在可预见的未来将需要这样的数据库。在许多 NoSQL 解决方案中实现大多数功能都是可能的,但是各种类型的索引和一些(较新的)高级 SQL 将需要更多的工作。

例如,Sentry 2.0 包含一个“趋势”选项,该选项是实时计算的,并且需要在 MongoDB 之类的东西中编写映射/归约查询(而它在其他地方都可以工作)。

您可以轻松使用 Raven 客户端,并为 Sentry 服务器设置额外的 Django 站点。就像 pip install django-sentry && 一样简单哨兵启动

Sentry is built on a relational DB, and thus will require such for the foreseeable future. It's possible to implement most things in many NoSQL solutions, but the various types of indexes, and some of the (newer) advanced SQL would be a lot more work.

As an example, Sentry 2.0 includes a "Trending" option, which is calculated real-time, and would require writing a map/reduce query in something like MongoDB (whereas it just works everywhere else).

You can easily use the Raven client, and setup an additional Django site for the Sentry server. It's as easy as pip install django-sentry && sentry start

栖迟 2024-12-23 15:33:14

不,不是。我设置了 django mongodb (http://django-mongodb.org/reference/settings.html) 并让哨兵服务器运行,但是当我单击消息时,它会抛出异常,因为消息 ID 不是整数 - 我尝试过通过更改哨兵的网址以使用 \w+ 而不是 \d+ 来解决此问题。这有帮助。然后我尝试再次单击该消息,它确实起作用了,但是在对 /sentry/jsapi/ 的 POST 请求期间又出现了 500 个消息——运行此代码时出现异常:

method = conn.ops.date_trunc_sql('hour', 'date')

我不想再与哨兵搞混了。

No it is not. I setup django mongodb (http://django-mongodb.org/reference/settings.html) and got sentry server running, but when I click on a message, it throws an exception because the message ID is not integers--i tried fixing this by altering sentry's urls to use \w+ instead of \d+. This helped. I then tried clicking the message again and it worked sort of, but there was another 500 coming up during POST requests to /sentry/jsapi/ -- the exception occurs when running this code:

method = conn.ops.date_trunc_sql('hour', 'date')

I don't want to mess with sentry any more.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文