Corutines, concurrency and exception handling#5
Merged
Polliog merged 10 commits intologtide-dev:mainfrom Mar 19, 2026
Merged
Conversation
…r trace ID retrieval
…rorToMap utility function
…ncrement project version to 0.8.3
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.
This pull request introduces several important changes to the LogTide SDK, focusing on simplifying trace ID handling, improving coroutine compatibility, enhancing error serialization, and updating configuration patterns. The most notable improvements are the removal of the
autoTraceIdoption, refactoring periodic flush logic to use coroutines, and providing more robust error handling and logging. Additionally, the configuration interfaces have been updated for better usability, and documentation/examples have been revised to reflect these changes.Trace ID Handling & Coroutine Compatibility
autoTraceIdoption fromLogTideClientOptions, centralizing trace ID generation and normalization logic within the client. Trace IDs are now always generated if missing, with improved logging for missing IDs. [1] [2] [3] [4] [5]TraceIdElementto adata classand improved coroutine context handling for trace IDs, ensuring compatibility and correct propagation in coroutine-based environments. [1] [2] [3] [4]Error Handling & Serialization
metadataOrErrorToMapto streamline metadata and error handling in log entries, reducing code duplication. [1] [2] [3]Configuration & Initialization
LogTideClientOptionsfields fromvaltovarto allow mutable configuration, and removed theautoTraceIdproperty.logtideClientOptionsblock for configuration, reflecting the removal ofautoTraceIdand improving clarity. [1] [2] [3] [4] [5]Periodic Flush & Shutdown
Logging & Debugging
These changes collectively improve the reliability, usability, and maintainability of the LogTide SDK.