-
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
Add header messages (including latched) to EventsFileWriter #196
Conversation
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.
can you add tests ?
@edgarriba I've spent some time working on adding tests. I went down a rabbithole and ultimately think found that the asyncio test infrastructure is not functioning as we expect. There is an issue when testing the |
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.
LGTM. Question/suggestion: how can we read/parse easily header messages ?
I still feel like this could be simpler. I can imagine latched topics can generate new data mid recording pretty easily, which would cause this to fail, and a programmer or user to scratch their head. Also if new meta data is added after a split, header messages will be inconsistent across log files. When is this likely to be needed? As a user how do I edit the meta data after it's recorded? I think for latched topics, if we can extend the query string on the sender side, then the latched topics can easily and transparently be carried across log splits with no additional api. Could meta data just be of the convention /header/foo and be a latched topic? And then we keep the semantics simple and really don't need to change the APIs? |
Yeah I'd like it to be too.
I don't think this does fail .Or maybe I'm misunderstanding what you mean by fail? There's no special casing for latched topics anymore. The only special case is a white list of URIs to consider as header messages, whether it is latched or not. That message comes in, we try to add it as a header, and we write it to the log either way. If we already created a header with that URI in this recording, then the old header is not overwritten. So either way, the new message received is still included in the log.
Likely never. Just thinking through edge cases.
We could make a python script with an example for this in
Oh I like this. Instead of a whitelist of subscribed topic URIs, we check for
This would require creating a separate service / publisher for the recording app just to publish metadata. I think it makes more sense to keep it as a client and use the request/reply API, but if you'd prefer that direction I can do that, |
Good idea. I added a method for this in: e790025 |
No description provided.