Skip to content
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

improve error handling when submitting logs to api #754

Merged
merged 1 commit into from
Jul 4, 2024
Merged

Conversation

aaronvg
Copy link
Contributor

@aaronvg aaronvg commented Jul 4, 2024

Add integ tests for catching parsing errors

Copy link

vercel bot commented Jul 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
baml ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2024 5:02am

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

  • Improved error handling in engine/baml-runtime/src/tracing/api_wrapper/mod.rs by capturing response body on errors.
  • Removed panic statements for unsupported media types in engine/baml-runtime/src/tracing/mod.rs.
  • Enhanced error messages in engine/baml-runtime/src/tracing/threaded_tracer.rs for failed log submissions.
  • Added DummyOutput class and related builders in integ-tests/python/baml_client/partial_types.py, type_builder.py, and types.py.
  • Introduced new tests in integ-tests/python/tests/test_functions.py for validating error handling improvements.

13 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@aaronvg aaronvg merged commit 49c768f into canary Jul 4, 2024
7 of 8 checks passed
@aaronvg aaronvg deleted the error-handling branch July 4, 2024 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant