以下示例将进一步拆分 Sentry 将创建的默认组(由 {{ default }} 表示),并考虑到错误对象的一些属性:class MyRPCError extends Error { constructor(message, functionName, errorCode) { super(message); // The name of the RPC function that was called (e.g. "getAllBlogArticles") this.functionName =...
- ref(sentry-metrics): Default to using the postgres indexer (#29446) by @MeredithAnya - chore(post-process-forwarder): Turn on batching consumer by default (#29562) by @nikhars - chore(jira): Use new CDN signed installs (#29465) by @leeandher - feat(suspect-spans): Allow filters...
最简单的形式,仅用于过滤transaction,它看起来像这样: Sentry.init({// ...tracesSampler: samplingContext => {if ("...") {// Drop this transaction, by setting its sample rate to 0%return 0;} else {// Default sample rate for all others (replaces tracesSampleRate)return 0.1;}};}); 关...
CHANGELOG.md Breadcrumbs sentry-javascript / Latest commit Cannot retrieve latest commit at this time. History History File metadata and controls Code Blame 156 KB Raw View raw (Sorry about that, but we can’t show files that are this big right now.)...
Starting version2.8.0, in case you see"error: config value 'safe.directory' was not found;"message, you also need to correctly set UID and GID of mounted volumes like so: docker run --rm -u"$(id -u):$(id -g)"-v$(pwd):/work getsentry/sentry-cli --help ...
If the toolbar<script>is accidentally included on your site, andSentryToolbar.init()is called, then a "Login to Sentry" button will be visible to the public. This is not ideal, but your data in sentry will still be safe as users not inside your sentry organization will not be able to...
要禁用系统集成,请在调用 init() 时设置 defaultIntegrations: false。 要覆盖它们的设置,请提供一个带有您的配置到集成选项的新实例。例如,要关闭浏览器捕获控制台调用:integrations: [new Sentry.Integrations.Breadcrumbs({ console: false })]。 删除集成 ...
disable_error_code = [ "arg-type", "assignment", "attr-defined", "call-overload", "misc", "operator", "override", "union-attr", ] # end: sentry modules with typing issues # begin: stronger typing [[tool.mypy.overrides]] module = [ "fixtures.safe_migrations_ap...
This option is safe to be used when you do not want to capture any Shadow DOM activity via Sentry Session Replay. bundleSizeOptimizations.excludeReplayIframe Type:boolean If set totrue, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replayiframerecordin...
AssertUtil.notNull(defaultClass, "default SPI class cannot be null"); try { String key = clazz.getName(); // Not thread-safe, as it's expected to be resolved in a thread-safe context. ServiceLoader<T> serviceLoader = SERVICE_LOADER_MAP.get(key); ...