1

I am using OpenTelemetry, and trying to add a custom attribute to the current Span, and I can see the attribute (user.name, user.role) is showing as part of the trace:

// 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

But I could not find out how to see this custom attribute in Azure App Insight. Anybody knows?

It must be stressed here that I'm using OpenTelemetry. I'm NOT using AppInsight SDK.

4
  • can you please share the code which you have tried? Commented Nov 7, 2023 at 9:57
  • This is not about code. This is about trying to find out how/where does AppInsight shows the custom attribute that I've created. Commented Nov 7, 2023 at 11:11
  • got your point, just for conformation have you configured custom attributes in local? Commented Nov 7, 2023 at 11:19
  • Yes. The trace does show the custom attributes. The one I showed above: that's my generated trace, it have my attributes. Commented Nov 7, 2023 at 12:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.