azure-sdk-for-net: [QUERY] Value of attribute deployment.environment is not being sent to app insights
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
About this issue
- Original URL
- State: open
- Created a year ago
- Comments: 19 (5 by maintainers)
@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?
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?