Conversation
…d migrate to tracing BREAKING CHANGE: - tracing is now a required dependency, replacing log crate - blocking_tell/blocking_ask signatures changed to accept optional timeout - Add DeadLetterReason enum to categorize message delivery failures - Add Error::is_retryable() and Error::debugging_tips() helper methods - Add test-utils feature with dead_letter_count() for testing - Log all dead letters with structured tracing::warn! events - Add optional timeout parameter to blocking_tell/blocking_ask - timeout: None uses blocking_send directly (most efficient) - timeout: Some(duration) spawns separate thread with bounded waiting - Update all examples and tests to use tracing-subscriber The tracing feature flag now controls instrumentation only (#[instrument]), not the logging system itself.
Implement per-actor metrics collection behind a `metrics` feature flag: - Lock-free MetricsCollector using AtomicU64 for minimal overhead - MetricsSnapshot for message count, processing times, error count, uptime - RAII guard for automatic processing time measurement - ActorRef methods for accessing metrics (metrics(), message_count(), etc.) - Documentation and example (metrics_demo.rs)
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
DeadLetterReasonenum for diagnosing message delivery failureslogtotracingas required dependency (breaking change)Error::is_retryable()andError::debugging_tips()helper methodsBreaking Changes
tracingis now a required dependency (previouslylogwas required,tracingwas optional)tracingfeature flag now controls instrumentation only, not the logging systemblocking_tellsignature changed:blocking_tell(msg)→blocking_tell(msg, timeout: Option<Duration>)blocking_asksignature changed:blocking_ask(msg)→blocking_ask(msg, timeout: Option<Duration>)