Skip to content

Refactor tracing handling for events#688

Merged
DJMcNab merged 5 commits intolinebender:mainfrom
DJMcNab:identity_traces
Oct 21, 2024
Merged

Refactor tracing handling for events#688
DJMcNab merged 5 commits intolinebender:mainfrom
DJMcNab:identity_traces

Conversation

@DJMcNab
Copy link
Copy Markdown
Member

@DJMcNab DJMcNab commented Oct 18, 2024

Inspired by #687, I thought some more tidying up of the log file was in order.

The main differences are:

  1. Higher-scale spans exist for key operations
  2. Something is always logged for each event, but less for high-density eventskey
  3. Less is logged for high-density events
  4. Key repeats are no longer treated as high density
  5. We no longer do extra work if the hover and focus paths haven't changed (which also means less logging)

This PR does not depend on #687

Copy link
Copy Markdown
Member

@Philipp-M Philipp-M left a comment

Choose a reason for hiding this comment

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

It's really interesting, that tracing seems to have such performance impact...

Otherwise looks good.

@DJMcNab DJMcNab requested a review from Philipp-M October 21, 2024 08:51
@DJMcNab
Copy link
Copy Markdown
Member Author

DJMcNab commented Oct 21, 2024

Re-requested review as I've not actioned the comment for making the trace spans include the widget's id.

Copy link
Copy Markdown
Member

@Philipp-M Philipp-M left a comment

Choose a reason for hiding this comment

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

Yeah that comment wasn't too important, I missed that this requires more significant changes (which obviously should be done in a follow-up PR).

@DJMcNab DJMcNab added this pull request to the merge queue Oct 21, 2024
@DJMcNab DJMcNab removed this pull request from the merge queue due to a manual request Oct 21, 2024
@DJMcNab DJMcNab added this pull request to the merge queue Oct 21, 2024
Merged via the queue into linebender:main with commit 03245d0 Oct 21, 2024
@DJMcNab DJMcNab deleted the identity_traces branch October 21, 2024 13:16
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