.net - How can I hide Client IP address in Application Insights? -


i've tried add following telemetryinitializer:

telemetryconfiguration.active.telemetryinitializers.add(new hiddenipstelemetryinitializer());  public class hiddenipstelemetryinitializer : itelemetryinitializer {     public void initialize(itelemetry telemetry)     {         telemetry.context.properties["client ip address"] = "hidden";     } } 

but doesn't want. adds new property "custom data" section, , want hide "client ip address" in "request properties" section.

you need change value of telemetry.context.ip instead of doing. inside properties named submitting new custom properties.

to see how ai collects in core .net sdk, see: locationcontext.cs in core sdk on github


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -