I use Application Insights to track usage of my application. In my service, I use the App Insights API to manually track requests and exceptions and disable the default sets of initializers and telemetry modules that track requests and exceptions in favor of some custom tools based on the structure used. However, when I manually track such a request, I do not see any user information in the request details in the Application Insights toolbar.
A simplified version demonstrating the problem I am facing:
Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration.Active
.InstrumentationKey = "<InstrumentationKey>";
var tc = new TelemetryClient();
var request = new RequestTelemetry();
request.Context.User.Id = "1234";
request.Name = "Test Request";
tc.TrackRequest(request);
EDIT 11/30/15
It was an error in the application portal. Since then it has been allowed.
source
share