我已经在我的Laravel项目上安装了Sentry,但是我无法运行它,每当我运行命令php artisan sentry:test时,结果是:
[Sentry] DSN discovered!
[Sentry] Generating test Event
[Sentry] Sending test Event
[Sentry] There was an error sending the test event.
[Sentry] Please check if your DSN is set properly in your config or `.env` as `SENTRY_LARAVE
如何将与结合使用?
除了应用程序中的Sentry之外,我还想捕获错误,但是一旦实现了config.errorHandler,我就会覆盖Sentry实现。
main.js:
import * as Sentry from "@sentry/browser";
Sentry.init({
dsn: "my dsn",
integrations: [new Sentry.Integrations.Vue({ Vue })]
});
// This prevents sentry from being used
Vue.config.errorHandler
我有一个通过WSGI运行的python3flask服务器。我有一个由api代码导入的配置文件,用于处理环境变量,并且我在该文件中设置了sentry。这是我的代码,它的设置完全按照哨兵文档https://docs.sentry.io/platforms/python/logging/中的描述进行。 if sentry_dsn is not None:
sentry_logging = LoggingIntegration(
level=logging.INFO,
event_level=lo
Sentry是个新手,我第一次尝试在本地开发环境中设置它。我正在按照安装和配置说明进行操作,但Sentry仪表板中没有记录任何内容。在浏览器中抛出一个错误,但没有任何内容被发送到Sentry。我做错了什么? React版本16.12.0 index.js const Index = () => {
...
import * as Sentry from "@sentry/react";
import { Integrations } from "@sentry/tracing";
import App from './App';
Sen
在Dropwizard项目中使用Sentry时,我遇到了一个奇怪的问题。
我在两个具有类似框架的应用程序中配置了它。
在一个例子中,我得到了所有日志消息的正确跟踪,但没有异常,因为它应该是这样的,我不知道为什么。
我注意到这个应用程序的不同之处在于:
java.lang.Exception: some error
at testEndpoint(EventResource.kt:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.Nat
我们在React项目中使用Sentry,将以下内容添加到我们的主要index.js和App.js文件中:
index.js
// Import Stuff
import * as Sentry from '@sentry/react';
import { Integrations } from '@sentry/tracing';
... import other important react stuff...
// https://sentry.io/onboarding/cbb-analytics/get-started/ (not my real ds
在django项目中,我试图将旧Sentry配置的实现升级到用于我的wsgi配置的新配置,但我得到了以下错误。
ImportError: No module named sentry_sdk.integrations.wsgi
早些时候我有:
from raven.contrib.django.raven_compat.middleware.wsgi import Sentry
现在我有:
from sentry_sdk.integrations.wsgi import SentryWsgiMiddleware
我的哨兵在settings.py文件中如下所示:
sentry_sdk.init(
我有一个基于django (3.2.10)和sentry (1.16.0)的项目,这是我的哨兵-init文件:
from os import getenv
SENTRY_URL = getenv('SENTRY_URL')
if SENTRY_URL:
from sentry_sdk import init
from sentry_sdk.integrations.django import DjangoIntegration
from sentry_sdk.integrations.redis import RedisIntegration