【问题标题】:Sentry Release tracking on azure天蓝色上的哨兵释放跟踪
【发布时间】:2021-09-01 05:08:30
【问题描述】:

我正在尝试在哨兵中跟踪托管在 azure 上的 .net5 web-api 的发布,但它不太工作。

在 appsettings.json 我有一个定义了发布变量的哨兵部分。

"Sentry": {
"Release": "1.0.2"
... }

作为构建过程的一部分,我在 azure 中添加了一个应用程序设置

但是当 prod 中记录错误时,sentry 会使用 appsettings 中的值而不是覆盖值进行报告。

我期待 azure set 值覆盖默认配置,但似乎并非如此。我错了吗?还是我做错了什么?

【问题讨论】:

  • 下面的回答对你有帮助吗?

标签: .net azure sentry


【解决方案1】:

在应用设置中将Sentry.Release 转换为Sentry__Release

对于 Linux 上的应用服务或适用于容器的 Web 应用,如果您的名称中有嵌套的 json 键结构,例如 ApplicationInsights:InstrumentationKey,则需要将 ApplicationInsights__InstrumentationKey 作为键名称。 因此请注意,任何 : 都应替换为 __(即双下划线)。

查看Azure — Configure Application settings and Connection strings in Azure App Services了解更多信息。

【讨论】:

猜你喜欢
  • 2014-10-11
  • 2018-10-17
  • 2022-11-27
  • 1970-01-01
  • 2022-07-07
  • 2018-01-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多