Skip to content
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

Cody completions: Improve completions logger and fix cache retrieval bug #52695

Merged
merged 2 commits into from
May 31, 2023

Conversation

philipp-spiess
Copy link
Contributor

Fixes #52585
Fixes #52583

This PR mainly focuses on improving the logging setup so that we can measure how long a completion was visible. We also include a special "read" flag that is only set if the completion is visible for at least 750ms.

Since this PR required me to refactor the cache to store some metadata with the completions (specifically I wanted to store a unique ID that we can use to connect various completion events), I could also extend this to fix #52585 quickly.

Test plan

Screenshot 2023-05-31 at 14 28 20

@philipp-spiess philipp-spiess self-assigned this May 31, 2023
@cla-bot cla-bot bot added the cla-signed label May 31, 2023
@github-actions github-actions bot added the team/code-exploration Issues owned by the Code Exploration team label May 31, 2023
@sourcegraph-bot
Copy link
Contributor

sourcegraph-bot commented May 31, 2023

📖 Storybook live preview

@abeatrix abeatrix merged commit e7fc5ab into main May 31, 2023
22 of 23 checks passed
@abeatrix abeatrix deleted the ps/cody-completions-logger-overhaul branch May 31, 2023 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed team/code-exploration Issues owned by the Code Exploration team
Projects
None yet
4 participants