-
Notifications
You must be signed in to change notification settings - Fork 622
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
🐛 Bug Report: Errors are not logged #412
Comments
Hi @nirga. Could you specify which components or packages within the project interact directly with foundation model APIs? This information will help narrow down the search to the relevant parts of the codebase. Also, could you provide insight into how a 'failed span' is defined or identified within the context of the project? This will aid in accurately logging the relevant events as failed spans. |
Hey @HappyLife2! This is how a failed span should be logged: https://opentelemetry.io/docs/languages/python/instrumentation/#record-exceptions-in-spans |
I can be assigned to this one if no one wants it. |
That would be great @epg323 :) |
Is the issue still open ? |
Yes @akhilk2802! Appreciate any help :) |
okay, looking into it |
Is this issue still open or resolved ? |
Yes this is still open, not sure what's the status of @akhilk2802 though |
Hey @nirga I was able to setup a sample project and can see the spans in my dashboard I produced a 401 error code by inputting incorrect API_KEY You want this error to be logged as a span |
Exactly @Huzaifa666! |
Is this acceptable ? |
Looks good, let's look at the code |
Have linked the PR with the issue |
Is this still open by chance? I'd love to give it a go. If it is, I would like to clarify please: Is it for all packages everywhere or just all packages for the ones referenced earlier? opentelemetry-instrumentatin-openai, -anthropic, -cohere, -replicate, -bedrock, -vertexai and -transformers |
@Bommy32 yes it's still open :) |
Which component is this bug for?
All Packages
📜 Description
If an HTTP error is returned from a foundation model API, we don't properly log it as a failed span.
👟 Reproduction steps
N/A
👍 Expected behavior
N/A
👎 Actual Behavior with Screenshots
N/A
🤖 Python Version
No response
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
Are you willing to submit PR?
None
The text was updated successfully, but these errors were encountered: