-
Notifications
You must be signed in to change notification settings - Fork 207
feat: better integration between llma and error tracking #2593
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Wiz Scan Summary
To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional Comments (8)
-
packages/ai/src/openai/index.ts, line 312-336 (link)logic: inconsistent error handling - still using old pattern
This error handler wasn't updated to use
sendEventWithErrorToPosthoglike the streaming paths were. This means it won't link exceptions to trace events and won't prevent double-capturing. -
packages/ai/src/openai/index.ts, line 504-529 (link)logic: inconsistent error handling - still using old pattern
Same as other non-streaming path, needs to be updated to
sendEventWithErrorToPosthog -
packages/ai/src/openai/index.ts, line 644-665 (link)logic: inconsistent error handling - still using old pattern
Same issue in embeddings error handler
-
packages/ai/src/anthropic/index.ts, line 285-304 (link)logic: inconsistent error handling - still using old pattern
This non-streaming error handler wasn't updated to use
sendEventWithErrorToPosthog -
packages/ai/src/openai/azure.ts, line 277-302 (link)logic: inconsistent error handling - still using old pattern
Azure OpenAI non-streaming error handlers also need the same update
-
packages/ai/src/openai/azure.ts, line 448-474 (link)logic: inconsistent error handling - still using old pattern
Another Azure OpenAI error handler that needs updating
-
packages/ai/src/openai/azure.ts, line 513-532 (link)logic: inconsistent error handling - still using old pattern
Another Azure OpenAI error handler that needs updating
-
packages/ai/src/openai/azure.ts, line 576-600 (link)logic: inconsistent error handling - still using old pattern
Azure embeddings error handler also needs updating
12 files reviewed, 9 comments
Edit Code Review Agent Settings | Greptile
React with 👍 or 👎 to share your feedback on this new summary format
|
Size Change: +5.12 kB (+0.1%) Total Size: 5.05 MB
ℹ️ View Unchanged
|
Problem
Inspired by this thread: https://posthog.slack.com/archives/C07AA937K9A/p1759356822031919
Changes
isErrorcheck given we have the errorRelease info Sub-libraries affected
Libraries affected