Skip to content

Replay aware logger #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 6, 2025
Merged

Replay aware logger #48

merged 3 commits into from
Mar 6, 2025

Conversation

slinkydeveloper
Copy link
Collaborator

Introduce replay aware logs filter.

h7kanna and others added 2 commits March 5, 2025 17:05
* We now emit the span all the times for the endpoint handle method. This seems a reasonable default, and doesn't require the tracing-subscriber dependency (we already pull in tracing as dependency anyway)
* Renamed the span name and the replaying field filter, to avoid confusion and clash
* Now the replay aware filter will look for the exact span name created by the handler. This should make the matching of the exact span we wanna use for filtering more robust.
* Flip the replaying field not only when taking an awaiting, but also when executing `sys_` functions on the state machine. Those are the ones that can cause state transitions.
* Simplify the tracing example
@slinkydeveloper
Copy link
Collaborator Author

cc @h7kanna

Copy link

github-actions bot commented Mar 5, 2025

Test Results

  7 files  ±0    7 suites  ±0   3m 23s ⏱️ -11s
 51 tests ±0   50 ✅ ±0  1 💤 ±0  0 ❌ ±0 
208 runs  ±0  205 ✅ ±0  3 💤 ±0  0 ❌ ±0 

Results for commit bc07858. ± Comparison against base commit c4243fe.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@h7kanna h7kanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, apart from tiny nits.

Thank you for including this.

@slinkydeveloper slinkydeveloper merged commit 1e715fe into main Mar 6, 2025
3 checks passed
@slinkydeveloper slinkydeveloper deleted the issues/replay-aware-logger branch March 6, 2025 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants