我正在使用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中查看此自定义属性。有人知道吗?
这里必须强调的是,我使用的是OpenTelemarket,我不是使用AppInsight SDK。
1条答案
按热度按时间tyky79it1#
这是我添加自定义属性的方法。
的数据
的
的