feat(replay): generic app-event and network observation - #32
Closed
Chinmay-KB wants to merge 3 commits into
Closed
Conversation
Provide a provider-neutral external_event hook with bounded parameter policies and a generic exactly-once network_call token, plus a tugboat_dio interceptor that maps Dio request lifecycles onto that token without importing Dio into core. Co-authored-by: Chinmay Kabi <chinmay@blend.to>
Rename parameter transform field to avoid static/instance clash, append tugboat_dio after auth/retry for Dio FIFO error handling, and cover retries/cache resolves in adapter tests. Also make semantics flags compat tests work on Flutter 3.36+ Tristate APIs. Co-authored-by: Chinmay Kabi <chinmay@blend.to>
Update docs index compatibility and production replay acceptance to the current release candidate, and note tugboat_dio plus evidence-only events. Co-authored-by: Chinmay Kabi <chinmay@blend.to>
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.
Summary
Adds opt-in, provider-neutral evidence capture for logical app/analytics events and HTTP calls on the existing
TugboatEvent→ session → sink path.Stack A — Core
tugboat0.6.0TugboatReplay.eventHookrecords oneexternal_eventper host invocation with bounded parameter policies (namesOnly,allowList,transform, exploration-onlyallowAll)TugboatReplay.beginNetworkCallexposes an exactly-once token for method, safe route template, status, outcome, and durationactionId,relatedEventId, or anchorsTugboatSdkHealth.evidencecounters for accepts/drops/duplicate finishesStack B —
tugboat_dio0.6.0TugboatDioInterceptor/install(appends after auth/retry; rejects duplicates)Docs
0.6.0docs/README.mdand production replay acceptance updated off stale0.5.0referencesOut of scope for this repo
mobile_apppilot (Stack D) live in separate repositoriesDecisions (from plan open questions)
tugboat_dioonly in this PRallowAllavailable0.6.0Verification
dart analyze .— cleanflutter test packages/tugboat— 301 passed; 4 pre-existing visual/asset failures on Flutter 3.44 in this environment (modal_capture_visual_test, overlay matrix,nonAssetImagesOnlymask pixel checks), unrelated to evidence hooksmain(0.5.3identity work) and still needs rebase before merge