-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.Net: Monitor & Troubleshoot the Semantic Kernel C# SDK using the KernelFunction #9666
Comments
Hi @markbartolocodit |
Semantic Kernel is being initialised in an ASP.NET Core App as folllows:
The code that is using the semantic kernel in a Controller is the following:
The exception is occuring in There is no way to interfere to see any exception happening from within the Kernel. The main goal would be for the 429 to bubble up in the |
Hi @markbartolocodit Based on this you should be able to catch a |
@markbartolocodit If you have ASP.NET Core app, you are invoking Kernel in Controller and you don't see an exception, make sure that you don't have global filter/middleware in your app that intercepts the exception automatically. If you want to catch 429 exceptions in controller, you need to make sure that global exception handling doesn't include 429 error. |
### Motivation and Context Issue #9666 ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄
.Net: Observability
We are using the Semantic Kernel C# SDK, but having some troubles identifying the possibilities to monitor & troubleshoot this solution.
We are using a
KernelFunction
using OpenAI and within that, the Azure OpenAI is throwing 429's.Nevertheless, it seems that this is captured within the code of the Semantic Kernel & we cannot distinguish the issues when we get back the result from the kernel.
So we have a few questions:
Thanks for the feedback!
The text was updated successfully, but these errors were encountered: