feat(network): add opt-in HttpTrafficObserver - #4287
Open
marcoconti83 wants to merge 1 commit into
Open
Conversation
Contributor
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #4287 +/- ##
=============================================
- Coverage 61.29% 61.25% -0.05%
Complexity 4018 4018
=============================================
Files 2163 2163
Lines 69490 69543 +53
Branches 6890 6892 +2
=============================================
+ Hits 42594 42596 +2
- Misses 24132 24184 +52
+ Partials 2764 2763 -1
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Contributor
marcoconti83
force-pushed
the
feature/debugger-http-client-config-hook
branch
from
July 12, 2026 22:41
452377c to
9d7d0e9
Compare
|
…fic visibility Consumers (e.g. a debugging tool) can now pass an HttpTrafficObserver via KaliumConfigs to see real requests/responses, including bodies and unredacted headers/paths - unlike KaliumHttpLogger, which redacts and never reads bodies by design for production log safety. Wired through CoreLogic -> UserSessionScope/AuthenticationScope/GlobalKaliumScope into defaultHttpEngine, where it's installed as an OkHttp network interceptor on JVM/Android (no-op on Apple/JS, which don't use OkHttp).
marcoconti83
force-pushed
the
feature/debugger-http-client-config-hook
branch
from
July 16, 2026 16:08
9d7d0e9 to
c20936d
Compare
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.



Internal consumers (e.g. a debugging tool) can now pass an HttpTrafficObserver via KaliumConfigs to see real requests/responses, including bodies and unredacted headers/paths. This is unlike KaliumHttpLogger, which redacts them by design for production log safety.
It's wired through CoreLogic -> UserSessionScope/AuthenticationScope/GlobalKaliumScope into defaultHttpEngine, where it's installed as an OkHttp network interceptor on JVM/Android (no-op on Apple/JS, which don't use OkHttp).
This change is required for Kalium integration with internal debugging tools. For this reason, it's enough to support this on JVM targets.