Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.17k stars 4.53k forks source link

[FEATURE REQ] Set client LocationIP field by default when using Azure.Monitor.OpenTelemetry.AspNetCore #44687

Open vishweshbankwar opened 2 weeks ago

vishweshbankwar commented 2 weeks ago

Library name

Azure.Monitor.OpenTelemetry.AspNetCore

Please describe the feature.

Related to: https://github.com/Azure/azure-sdk-for-net/issues/42850

When using Application Insights SDK, the location IP field is set by default. When using Azure.Monitor.OpenTelemetry.AspNetCore, users need to enable this collection by setting client.address attribute on the activity using Enrich or processor. https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-add-modify?tabs=aspnetcore#set-the-user-ip.

Opening this issue to enable the collection of LocationIP by default when using Azure.Monitor.OpenTelemetry.AspNetCore

github-actions[bot] commented 2 weeks ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @cijothomas @rajkumar-rangaraj @reyang @TimothyMothra @vishweshbankwar.