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

Completions: Add context summary and language ID to analytics #53746

Merged
merged 5 commits into from
Jun 20, 2023

Conversation

philipp-spiess
Copy link
Contributor

This adds a few more things to the analytics payload:

  • contextSummary is a dictionary that shows (roughly - individual providers can still limit the exact number) how many snippets of which context providers are included
  • languageId is used to log completion rates against different languages

Test plan

Added a console.log to validate what data is being sent

Screenshot 2023-06-20 at 13 51 32 Screenshot 2023-06-20 at 13 49 09 Screenshot 2023-06-20 at 13 46 53

@cla-bot cla-bot bot added the cla-signed label Jun 20, 2023
@github-actions github-actions bot added the team/code-exploration Issues owned by the Code Exploration team label Jun 20, 2023
@sourcegraph-bot
Copy link
Contributor

sourcegraph-bot commented Jun 20, 2023

📖 Storybook live preview

@philipp-spiess philipp-spiess merged commit 9f89d65 into main Jun 20, 2023
16 of 17 checks passed
@philipp-spiess philipp-spiess deleted the ps/completions-more-logging branch June 20, 2023 13:54
ErikaRS pushed a commit that referenced this pull request Jun 22, 2023
This adds a few more things to the analytics payload:

- `contextSummary` is a dictionary that shows (roughly - individual
providers can still limit the exact number) how many snippets of which
context providers are included
- `languageId` is used to log completion rates against different
languages

## Test plan

Added a console.log to validate what data is being sent

<img width="1257" alt="Screenshot 2023-06-20 at 13 51 32"
src="https://github.com/sourcegraph/sourcegraph/assets/458591/b9bb94c7-8697-482f-b7ca-1ab594b87d5c">
<img width="1311" alt="Screenshot 2023-06-20 at 13 49 09"
src="https://github.com/sourcegraph/sourcegraph/assets/458591/ec377184-edb1-4c2f-a3ad-40ce457e75ad">
<img width="1262" alt="Screenshot 2023-06-20 at 13 46 53"
src="https://github.com/sourcegraph/sourcegraph/assets/458591/27142e44-2ccf-4f35-bf6d-850a3e66687d">



<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
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
Development

Successfully merging this pull request may close these issues.

None yet

3 participants