Conversation
- Add NebulaAdapter class with optional Nebula framework integration - Graceful degradation to System.debug when Nebula not available - Support for both managed (namespaced) and unlocked packages - HTTP request/response logging with customizable headers - Record association for traceability - Error logging with exception details - Enhance RestLib with logging context support - Add makeApiCall overload with relatedRecord parameter - Integrate NebulaAdapter for automatic request/response logging - Maintain backward compatibility with existing methods - Extend RestClientLib with logging-enabled method overloads - Add relatedRecord parameter to all HTTP methods (get, post, put, patch, del) - Support for 2-param, 3-param, and 4-param method combinations - Consistent API design across all convenience methods - Update RestClient static methods - Add makeApiCall overload with relatedRecord parameter - Maintain backward compatibility with existing static calls - Enhance AsyncRestClient for background logging - Add constructor overload with relatedRecord parameter - Pass logging context through to API calls - Support for both sync and async logging scenarios - Add comprehensive test coverage - Create NebulaAdapter_Test class with HTTP mock testing - Test both Nebula available and fallback scenarios - Validate request/response logging functionality - Test record association and error handling - Update package manifest and documentation - Add NebulaAdapter and test classes to package.xml - Update README with complete NebulaAdapter documentation - Add API reference for all new logging methods - Document usage examples and best practices - Zero external dependencies - No compilation dependencies on Nebula - Safe deployment to any Salesforce org - Optional enhancement that doesn't break existing functionality
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.
Add NebulaAdapter class with optional Nebula framework integration
Enhance RestLib with logging context support
Extend RestClientLib with logging-enabled method overloads
Update RestClient static methods
Enhance AsyncRestClient for background logging
Add comprehensive test coverage
Update package manifest and documentation
Zero external dependencies