gpt4 book ai didi

azure-application-insights - Application Insights 中的城市数据

转载 作者:行者123 更新时间:2023-12-04 13:44:16 28 4
gpt4 key购买 nike

我有多个应用程序使用 Application Insights for Production Data。我正在尝试使用 City 遥测字段来映射我们当前的用户。这些数据的跟踪似乎非常不一致,并且在大多数情况下 (> 75%) 只是不可用。
我知道有些客户会使用 VPN,这可能会影响结果,但不会达到我所看到的程度。
这是来自 Azure FAQ 的信息:

How are City, Country and other geo location data calculated? We lookup the IP address (IPv4 or IPv6) of the web client using GeoLite2.

  • Browser telemetry: We collect the sender's IP address.

  • Server telemetry: The Application Insights module collects the client IPaddress. It is not collected if X-Forwarded-For is set.

You can configure the ClientIpHeaderTelemetryInitializer to take the IPaddress from a different header. In some systems, for example, it ismoved by a proxy, load balancer, or CDN to X-Originating-IP.


有谁知道如何改进 App Insights 的地理定位用户城市?

最佳答案

IP 地理定位并非 100% 准确,您需要接受它。城市准确度很低,因为信息是从频繁变化的多个数据中猜测出来的。提高准确性的一种方法是使用一项服务,该服务聚合来自多个来源的数据,并且每天多次连续进行。
增强结果的第二种方式是使用威胁数据根据 IP 是否与代理相关联进行过滤。
对于这两个目的,我建议查看 Ipregistry ,我工作的服务:
https://api.ipregistry.co/?key=tryout

关于azure-application-insights - Application Insights 中的城市数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51803659/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com