sarwal
sarwal

Reputation: 21

App Insights: Telemetry not showing Usage User data

I have my .Net Core app and I've added ITelemetryInitializer and got that all set up. In Application Insights for that app, under Performance => Operation Name => Samples => Suggested => Request Properties -> Show All => "Auth Id" and "Account Id" have values now, great.

Now, in Application Insights => Usage -> Users, I still only have 1 User. How do I get the Usage/Users functionality to read the User information that the requests under performance are collecting?

I've read several of MSFT documentation on Send User Context and troubleshooting, etc, but no luck. It seems like if I have "anonymous user ID, authenticated user ID, or session ID" in the Request Properties, the Usage telemetry should be picking it up.

Any suggestions?

Upvotes: 0

Views: 2168

Answers (2)

Daniel Liuzzi
Daniel Liuzzi

Reputation: 17147

From Counting users:

If your app is sending authenticated user IDs, you can count based on authenticated user IDs in the users tool. In the Show dropdown, choose Authenticated users.

enter image description here

Upvotes: 0

AmanGarg-MSFT
AmanGarg-MSFT

Reputation: 1153

Here is a link that talks about how to resolve the one user/session issue:

https://learn.microsoft.com/en-us/azure/azure-monitor/app/usage-troubleshoot#counting-users

Here is a code snippet that can be used for ASP.Net Core apps:

https://github.com/MicrosoftDocs/azure-docs/issues/16002#issuecomment-503655010

Upvotes: 0

Related Questions