提问人:Farid 提问时间:11/7/2023 最后编辑:Farid 更新时间:11/20/2023 访问量:84
Azure AppInsight - 我的自定义属性在哪里?
Azure AppInsight - Where is my custom attributes?
问:
我正在使用 OpenTelemetry,并尝试将自定义属性添加到当前 Span,我可以看到该属性(user.name,user.role)显示为跟踪的一部分:
// This is a sample trace coming from console exporter
Activity.TraceId: 1be70cf887cbde79d34d55e79642a9ee
Activity.SpanId: 4a40500a30985ff2
// Yada yada
Activity.Tags:
net.host.name: localhost
net.host.port: 7253
// The next 2 are my custom attributes
user.name: Ahamat, Farid
user.role: Guest, Officer
http.status_code: 200
Resource associated with Activity:
// Yada yada
但我无法了解如何在 Azure App Insight 中查看此自定义属性。有人知道吗?
这里必须强调的是,我使用的是 OpenTelemetry。我没有使用 AppInsight SDK。
答:
评论