question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[QUERY] Value of attribute deployment.environment is not being sent to app insights

See original GitHub issue

Library name and version

Azure.Monitor.OpenTelemetry.Exporter version 1.0.0-beta.9

Query/Question

Hello We use open telemetry with app insights, and we would like to use the deployment.environment property in order to discriminate between our environments, and not mix metrics reported by production and test environments.

We use the following code in open telemetry:

                .AddAttributes(new Dictionary<string, object>() { { "deployment.environment", "ppe or prod" } });

But unfortunately in the app insights customMetrics table we cannot find this value anywhere.

Please can you advise on what would be the recommended approach in that case?

Environment

No response

Issue Analytics

  • State:open
  • Created 5 months ago
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
erichkraycommented, Aug 15, 2023

@navba-MSFT where are we at with this? The PR from May 4th is abandoned and closed, can we get an official update so that the Azure Monitor Exporter for .NET sends Resource attributes correctly?

1reaction
nicolaslattuadacommented, Apr 12, 2023

hi @navba-MSFT Thanks for taking time to answer, I know that I can add tags to activities. Here we are looking for a global solution, I don’t want to have to pass the deployment.environment value to every activities. Do you know if there is a way to configure global tags maybe?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot no data in Application Insights for .NET - Azure
In Visual Studio Solution Explorer, right-click the project and select Application Insights > Configure. Reset the app to send telemetry to the ...
Read more >
Appinsights hidden-link tags are beeing added and ...
The hidden-link tag is used to link Application Insights to a particular resource, so that's expected if the other resource is connected to ......
Read more >
Azure Monitor Application Insights for Java
This article shows you how to configure Azure Monitor Application Insights for Java.
Read more >
"az monitor app-insights component create" fails with HTTP ...
I am simply deploying a bicep template consisting of a log analytics workspace and application insight and deployment fails occasionally saying ...
Read more >
Azure Application Insights not showing data
My admin solved the issue by creating a new instance of Azure Application Insights which was linked to a Log Analytic Workspace within...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found