feat: add HTTP request logging and enhance lab report file processing#133
Open
fern-api[bot] wants to merge 1 commit intomasterfrom
Open
feat: add HTTP request logging and enhance lab report file processing#133fern-api[bot] wants to merge 1 commit intomasterfrom
fern-api[bot] wants to merge 1 commit intomasterfrom
Conversation
Add comprehensive HTTP request/response logging with configurable log levels and automatic header redaction for security. Update lab report parser to accept multiple files instead of single file uploads. Include platform metadata in SDK headers and expose status codes in HTTP responses. Key changes: - Add logging configuration support with debug/error level HTTP request logging - Update lab report parser_create_job to accept List[core.File] instead of core.File - Add status_code property to BaseHttpResponse class - Include platform metadata (Python version, OS) in X-Fern-Runtime and X-Fern-Platform headers - Add sensitive header redaction for authorization tokens and API keys - Expand AppointmentPscLabs enum to include SONORA_QUEST option 🌿 Generated with Fern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Version Bump: Existing callers of parser_create_job() expecting single core.File parameter will get type errors - now requires List[core.File].
parser_create_jobmethod. HTTP responses now include astatus_codeproperty for easier debugging. Added optional logging configuration to track HTTP requests with automatic redaction of sensitive headers.create_lab_test()method now acceptslab_account_idandlab_slugparameters. Thecreate_appointment()method supports anappointment_notesparameter. Theget_psc_appointment_availability()method now requires alabparameter (previously hardcoded to "quest"). Several other methods gained new optional parameters for enhanced customization.addressparameter in user creation methods now expectsUserAddressinstead ofAddress. Update your imports and parameter usage: replacefrom vital import Addresswithfrom vital import UserAddressand ensure you're passingUserAddressobjects when creating users.client.compendium.search()to find lab tests across providers andclient.compendium.convert()to transform test data between different lab formats.