Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
5.57k stars 3.74k forks source link

App Insights can't track users #1714

Open Mahmoud-Hesham99 opened 1 week ago

Mahmoud-Hesham99 commented 1 week ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Used manual steps to set up authentication, login works fine but app insights show only 1 user using the app and it's not the case.

Any log messages given by the failure

Expected/desired behavior

Application Insights show the actual number of users instead of just 1 user.

OS and Version?

Windows 10

azd version?

1.9.3

Versions

Mention any other details that might be useful

I don't know what did I miss that in the manual authentication set up for the app insights not to be able to track different users , also I can't do azd up since i enabled authentication AZURE_USE_AUTHENTICATION="true" and runnning ./scripts/auth_init.ps1 fails because my account does not have enough privileges.


Thanks! We'll be in touch soon.

pamelafox commented 1 week ago

Can you point at documentation about how App Insights tracks users? I wasn't aware that there was a feature for that.

Mahmoud-Hesham99 commented 1 week ago

Here:

and also you can easily find it on the portal, left panel -> Usage - > Users

App Insights - Users
pope-llamas0g commented 5 days ago

wondering about the same.

pope-llamas0g commented 28 minutes ago

Hi @pamelafox - What would be the best way to track usage?