如何禁用 Sentry 中的日志分组?
How to disable logs grouping in Sentry?
我正在使用 Spring Boot 和 Sentry 从应用程序记录 info/warn/error 日志。
我的application.properties
:
sentry.dsn=<DNS_URL>
sentry.in-app-includes=com.github.chameleontartu.example
sentry.logging.enabled=true
sentry.send-default-pii=true
sentry.logging.minimum-event-level=info
sentry.use-git-commit-id-as-release=true
问题是所有日志都按进程 ID 分组,我看不出是什么原因导致了什么操作。同类型的错误也堆积起来了,所以我找不到最新的。
如何更改 Senty.io 或 Spring 启动应用程序属性中的设置以分别查看每个日志条目并禁用相同日志的分组?
我查看了 Sentry 文档,但无法理解如何改变当前行为。
如@Bruno Garcia 所述,在属性文件中,您可以在资源中指定 application.properties
:
sentry.attach-stacktrace=true
日志一一出现,更容易跟进。所有相关上下文都附加到日志消息本身。
我正在使用 Spring Boot 和 Sentry 从应用程序记录 info/warn/error 日志。
我的application.properties
:
sentry.dsn=<DNS_URL>
sentry.in-app-includes=com.github.chameleontartu.example
sentry.logging.enabled=true
sentry.send-default-pii=true
sentry.logging.minimum-event-level=info
sentry.use-git-commit-id-as-release=true
问题是所有日志都按进程 ID 分组,我看不出是什么原因导致了什么操作。同类型的错误也堆积起来了,所以我找不到最新的。
如何更改 Senty.io 或 Spring 启动应用程序属性中的设置以分别查看每个日志条目并禁用相同日志的分组?
我查看了 Sentry 文档,但无法理解如何改变当前行为。
如@Bruno Garcia 所述,在属性文件中,您可以在资源中指定 application.properties
:
sentry.attach-stacktrace=true
日志一一出现,更容易跟进。所有相关上下文都附加到日志消息本身。