Skip to content

fix(lwtr): record the event name passed to record_event - #11

Merged
eyck merged 1 commit into
Minres:mainfrom
ripopov:fix/event-name
Jun 11, 2026
Merged

fix(lwtr): record the event name passed to record_event#11
eyck merged 1 commit into
Minres:mainfrom
ripopov:fix/event-name

Conversation

@ripopov

@ripopov ripopov commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

tx_handle::record_event and record_event_at_time took the event name as their first parameter but never used it: the event transaction was begun with an empty value() and the ".events" generator was constructed without a begin attribute name, so every event written through this API ended up anonymous in the trace.

The shipped examples clearly expect the names (pipeline stages "IF", "ID", ...) to be recorded.

And logically each event should at least have name and timestamp.

tx_handle::record_event and record_event_at_time took the event name as
their first parameter but never used it: the event transaction was begun
with an empty value() and the ".events" generator was constructed without
a begin attribute name, so every event written through this API ended up
anonymous in the trace. The shipped examples clearly expect the names
(pipeline stages "IF", "ID", ...) to be recorded.

@eyck eyck left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@eyck
eyck merged commit 286bcbb into Minres:main Jun 11, 2026
4 checks passed
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