-
Notifications
You must be signed in to change notification settings - Fork 3
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
Updates to digitiser aggregator, and adding fields to spans #248
Updates to digitiser aggregator, and adding fields to spans #248
Conversation
Why was this done? |
It was the cleanest way to make the |
The issue is that in doing so you remove the deterministic ordering of frames emitted from the aggregator in the case where multiple frames are held in the cache. |
I see, perhaps we can keep a |
I think I am missing what was wrong with using |
I was tripping over the borrow checker trying to return a ref to its contents, whilst also possibly modifying it if a new |
I assume the only reason you need to return anything from |
That's right. I prefer to return from I managed to find a way to reimplement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Summary of changes
cache.rs
SwappedVecDeque
toHashMap<FrameMetadata,_>
and implemented resulting changespush
function instrumentation.get_num_partial_frames
function.test_metadata_equality
test.push
now returns&impl SpannedAggregator
, and dependence onFindSpan(Mut)
removed.partial.rs
Frame
span.main.rs
on_message
toprocess_kafka_message
andprocess_digitiser_event_list_message
functions.process_kafka_message
andprocess_digitiser_event_list_message
instrumentationroot_as_digitizer_event_list_message
by wrapping withspan_of_root_as_digitizer_event_list_message
frame_metadata.rs
ImplementedHash
trait forFrameMetadata
PartialEq
forFrameMetadata
as a temporary measure to excludeveto_flags
(this will be removed later).Instruction for review/testing
tracing.md
?