标签: sentry

Sentry.io:需要 Cookie 通知吗?

根据 GDPR,我一直想知道在网站上使用sentry.io(在本例中为 nuxt)是否需要显示 cookie 通知/设置以选择退出哨兵?

不幸的是,sentry.io 网站仅声明它们符合 GDPR,但没有声明用户/客户在使用其 SDK 时是否必须添加通知。

sentry nuxt.js

8
推荐指数
1
解决办法
2715
查看次数

无法使用 Helm Chart 在本地安装哨兵

我尝试使用 Helm Chart安装 Sentry 但使用 Helm Chart 安装 Sentry 时出现错误:我不知道问题是什么。

这是我的 helm 版本和错误日志

helm version
version.BuildInfo{Version:"v3.10.2", GitCommit:"50f003e5ee8704ec937a756c646870227d7c8b58", GitTreeState:"clean", GoVersion:"go1.19.3"}
Run Code Online (Sandbox Code Playgroud)
~/sentry> helm install sentry sentry/sentry -f values.yaml --debug
install.go:192: [debug] Original chart version: ""
install.go:209: [debug] CHART PATH: /Users/pansukkim/Library/Caches/helm/repository/sentry-17.8.0.tgz

coalesce.go:175: warning: skipped value for kafka.config: Not a table.
client.go:310: [debug] Starting delete for "sentry-sentry-secret" Secret
client.go:128: [debug] creating 1 resource(s)
client.go:128: [debug] creating 61 resource(s)
client.go:310: [debug] Starting delete for "sentry-db-check" Job
client.go:128: [debug] creating 1 resource(s)
client.go:540: [debug] Watching …
Run Code Online (Sandbox Code Playgroud)

sentry kubernetes-helm

8
推荐指数
1
解决办法
1497
查看次数

使 Flutter Web Sentry 错误报告可读?

发送到 Sentry 的 Flutter Web 错误报告不可读,因为已缩小。

https://github.com/flutter/flutter/issues/37875 https://github.com/flutter/flutter/issues/16883#issue-316793104

我正在使用: https: //pub.dev/packages/sentry

如何使报告不缩小以便我可以阅读?

minify sentry dart flutter flutter-web

7
推荐指数
1
解决办法
1648
查看次数

Sentry 与 NestJS 集成时无法获取 TypeScript 源映射

我最近创建了一个小型 NestJS 项目,试图将 Sentry 集成到其中。我已按照Nest-Raven包自述文件中的说明以及 Sentry 提供的TypeScript 集成说明进行操作。

不幸的是,我似乎无法让 Sentry 显示 TypeScript 源映射,只能显示常规 JS 源映射,如下所示:

哨兵源图

main.ts我已按照说明初始化了 Sentry

import { NestFactory } from '@nestjs/core';
import { RewriteFrames } from '@sentry/integrations';
import * as Sentry from '@sentry/node';
import { AppModule } from './app.module';

// This allows TypeScript to detect our global value
declare global {
  // eslint-disable-next-line @typescript-eslint/no-namespace
  namespace NodeJS {
    interface Global {
      __rootdir__: string;
    }
  }
}

global.__rootdir__ = __dirname || process.cwd();

async function bootstrap() …
Run Code Online (Sandbox Code Playgroud)

sentry source-maps typescript nestjs

7
推荐指数
1
解决办法
5478
查看次数

无法写入清单文件。错误域=NSCocoaErrorDomain

我已经配置了 Sentry 来响应本机博览会应用程序。Sentry 正在报告此次崩溃。

\n
Error: Failed to write manifest file.Error Domain=NSCocoaErrorDomain Code=640 "You can\xe2\x80\x99t save the file \xe2\x80\x9cmanifest.json\xe2\x80\x9d because the volume \xe2\x80\x9cData\xe2\x80\x9d is out of space." UserInfo={NSURL=file:///var/mobile/Containers/Data/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXX...\n  at c(app:///main.jsbundle:1160:3923)\n  at map([native code])\n  at ? (app:///main.jsbundle:1160:1925)\n  at value(app:///main.jsbundle:41:3842)\n  at ? (app:///main.jsbundle:41:1163)\n  at value(app:///main.jsbundle:41:2799)\n  at value(app:///main.jsbundle:41:1133)\n  at value([native code])\n\n
Run Code Online (Sandbox Code Playgroud)\n
    \n
  • 设备 - iPhone 11 Max Pro
  • \n
  • iOS-14.5
  • \n
  • 哨兵 SDK - 2.1.0
  • \n
  • 也使用 AsyncStorage
  • \n
\n

没有更多的细节,但检查谷歌搜索的数量让我感到困惑。发现它的苹果隐私问题,但同时,我可以发现它的内存问题为错误状态。

\n

在博览会论坛上发现了同样的问题,但没有回复。问题链接

\n

error-handling sentry react-native expo

7
推荐指数
0
解决办法
869
查看次数

在 Django 中导入 Sentry_sdk 失败

我目前正在尝试让 Sentry 与我的 Django 项目一起工作。在 settings.py 文件中初始化 Sentry 时,出现以下错误:

第301行,在模块导入sentry_sdk ModuleNotFoundError:没有名为“sentry_sdk”的模块无法加载应用程序0(挂载点='')(找不到可调用或导入错误)

我复制了文档,我想知道为什么会发生这种情况。以前有人遇到过这个问题吗?我的 Django 版本是 2.2.11,我运行的是 python v 3.9.5

如果重要的话,这是文档的代码(pip install --upgrade Sentry-sdk)

import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration

sentry_sdk.init(
    dsn="https://examplePublicKey@o0.ingest.sentry.io/0",
    integrations=[DjangoIntegration()],

    # Set traces_sample_rate to 1.0 to capture 100%
    # of transactions for performance monitoring.
    # We recommend adjusting this value in production,
    traces_sample_rate=1.0,

    # If you wish to associate users to errors (assuming you are using
    # django.contrib.auth) you may enable sending PII data.
    send_default_pii=True,

    # By default the …
Run Code Online (Sandbox Code Playgroud)

python django sentry

7
推荐指数
1
解决办法
1万
查看次数

Sentry 请检查您的 DSN 是否在您的配置或 .env 中正确设置为“SENTRY_LARAVEL_DSN”

我已经在 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_LARAVEL_DSN`.


Run Code Online (Sandbox Code Playgroud)

但我已在 .env 文件中添加了 DSN

php exception sentry laravel

7
推荐指数
1
解决办法
3045
查看次数

如何通过 Quasar.js 使用 Sentry 应用程序监控

我将哨兵监控添加到我的类星体应用程序中,但哨兵没有收到任何错误,也没有显示在其面板中

我创建/src/boot/sentry.js并编写了这些代码:

import { boot } from "quasar/wrappers";
import * as Sentry from "@sentry/vue";
import { BrowserTracing } from "@sentry/tracing";

export default boot(({ app, router }) => {
  Sentry.init({
    app,
    dsn: "<my sentry dns>",
    integrations: [
      new BrowserTracing({
        routingInstrumentation: Sentry.vueRouterInstrumentation(router),
        tracingOrigins: ["localhost", "my-site-url.com", regex],
      }),
    ],

    trackComponents: true,
    tracesSampleRate: 1.0,
  });
});
Run Code Online (Sandbox Code Playgroud)

我的 Quasar 应用程序是 ssr。我应该如何修复它?

sentry vue.js quasar-framework vuejs3

7
推荐指数
1
解决办法
1556
查看次数

Sentry 通过 VueJS3 在 localhost 中获取 CORS 错误

我使用 http://localhost:3000 来开发我的网站,但我总是从 Sentry 收到 CROS 错误,我错过了什么?

在Sentry的设置中:我已将项目的允许域设置为*,但它看起来不起作用......

从源“http://localhost:3000”获取“my-sentry-dsn”的访问已被 CORS 策略阻止:请求的资源上不存在“Access-Control-Allow-Origin”标头。如果不透明响应满足您的需求,请将请求模式设置为“no-cors”以在禁用 CORS 的情况下获取资源。

Vue3+Vite

yarn add @sentry/tracing @sentry/vue
Run Code Online (Sandbox Code Playgroud)

在 main.ts 中

import * as Sentry from "@sentry/vue"
import { Integrations } from "@sentry/tracing"
const app = createApp(App)
// Initialize Sentry
const dsnSentry = import.meta.env.VITE_SENTRY_DSN as string
if (!!dsnSentry) {
  const env = import.meta.env.VITE_ENV
  const isDebug = env !== "production"
  Sentry.init({
    app,
    dsn: dsnSentry,
    // integrations: [new Integrations.BrowserTracing()],
    integrations: [
      new Integrations.BrowserTracing({
        routingInstrumentation: Sentry.vueRouterInstrumentation(router),
        tracingOrigins: ["localhost:3000", /^\//],
      }),
    ],
    tracesSampleRate: 1.0, …
Run Code Online (Sandbox Code Playgroud)

sentry vuejs3 vite

7
推荐指数
1
解决办法
6440
查看次数

python 应用程序的 Sentry sdk 自定义性能集成

Sentry 可以跟踪 celery 任务和 API 端点的性能 https://docs.sentry.io/product/performance/

我有一个由老太婆吃午饭的自定义脚本,并执行一组类似的任务

我想将sentry_sdk合并到我的脚本中以获取任务的性能跟踪

任何建议如何使用 https://getsentry.github.io/sentry-python/api.html#sentry_sdk.capture_event

python performance sentry

7
推荐指数
1
解决办法
732
查看次数