Azure-Samples / private-openai-with-apim-for-chargeback

Open AI with Private Endpoints behind APIM and functionality to get tokens consumption for each consumer
MIT License
27 stars 13 forks source link

Logger does not collect data #2

Open jeffmoore64 opened 4 months ago

jeffmoore64 commented 4 months 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
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

follow instruction in repo, do the azd up, the logging app never receives events from APIM. Seems like the is a step missing on how to get the logger to actually connect to APIM. I've spent 3 days trying various things to get this to work.

Any log messages given by the failure

none, and that is part of the issue

Expected/desired behavior

expect token counts in the logs which is the whole purpose of this code

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

skowalik commented 4 months ago

I also had an issue, but found the function in the function app to not deploy.

Deploy the function app manually in your vs code environment by right clicking on chargeback_eventhub_trigger_function and then ---> Deploy to Function App

This worked for me

shksin commented 4 months ago

Thanks for providing the workaround @skowalik . I will update the Troubleshooting Steps in the README on how to deploy function apps via VS code