Sentry-javascript: “附加数据”显示[已过滤],替换为 PII 规则 creditcard:filter

创建于 2020-02-24  ·  3评论  ·  资料来源: getsentry/sentry-javascript

  • [x] 查看文档: https :
  • [x] 搜索现有问题: https :
  • [x] 使用最新版本: https :
  • [ ] 从您的 Sentry 帐户提供指向受影响事件的链接

套餐+版本

  • [x] @sentry/browser
  • [ ] @sentry/node
  • [ ] raven-js
  • [ ] raven-node _(节点的乌鸦)_
  • [ ] 其他:

版本:

5.12.1

描述

我试图通过将 fullstory 会话 url 作为附加数据发送到 sentry 来将 fullstory 与 sentry 集成,如下所示:

  /**
   * https://help.fullstory.com/hc/en-us/articles/360020828073-FS-getCurrentSessionURL-Retrieving-a-session-URL-at-time-of-recording
   * https://help.fullstory.com/hc/en-us/articles/360020624234-Roll-Your-Own-Integration
   */
  // eslint-disable-next-line no-underscore-dangle
  window._fs_ready = () => {
    Sentry.configureScope((scope) => {
      scope.setExtra('fullstoryUrl', window.FS.getCurrentSessionURL());
    });
  };

在哨兵 Web 应用程序中, fullstoryUrl出现但已通过PII creditcard:filter规则过滤掉某些部分,如下所示:

Zrzut ekranu 2020-02-24 o 16 54 40

fullstoryUrl看起来像这样:

https://app.fullstory.com/ui/<accountId>/session/5472936014675968%3A4548674178482176"

看来哨兵认得这部分


作为信用卡号...

有什么方法可以禁用这些过滤规则,或者我应该使用不同的方法以某种方式发送该 url?

Needs Triage

最有用的评论

请在您的项目设置中将fullstoryUrl到您的安全字段。 有关服务器端清理的更多信息,访问

所有3条评论

请在您的项目设置中将fullstoryUrl到您的安全字段。 有关服务器端清理的更多信息,访问

如果这对您有用,请告诉我,然后我会重新打开

@untitaker非常感谢! 它有效💪

此页面是否有帮助?
0 / 5 - 0 等级