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

feat(telemetry): report host_id for atlas COMPASS-8092 #763

Merged
merged 2 commits into from
Jul 26, 2024

Conversation

alenakhineika
Copy link
Contributor

@alenakhineika alenakhineika commented Jul 26, 2024

Description

For every detected Atlas cluster track the first resolved hostname without the port when connecting.

Checklist

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

Copy link
Contributor

@mcasimir mcasimir left a comment

Choose a reason for hiding this comment

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

LGTM, left a couple of NIT comments. Couple of thoughts that came to mind while reviewing:

  • can we add a test to make sure that we don't send this host id for non atlas connections? It would be quite bad if we start to send those
  • I liked the idea of calling this prop atlas_host_id as you did for the constant, instead of host_id, we can quickly ask in the analytics channel if they would be ok with it?

src/telemetry/connectionTelemetry.ts Outdated Show resolved Hide resolved
src/telemetry/connectionTelemetry.ts Outdated Show resolved Hide resolved
src/telemetry/connectionTelemetry.ts Show resolved Hide resolved
@alenakhineika alenakhineika merged commit b13dbcb into main Jul 26, 2024
5 checks passed
@alenakhineika alenakhineika deleted the COMPASS-8092-report_host_id_for_atlas branch July 26, 2024 14:31
alenakhineika added a commit that referenced this pull request Aug 12, 2024
* fix: remove changelog from the bundle VSCODE-551 (#758)

* Update changelog (#759)

Co-authored-by: mcasimir <[email protected]>

* Update changelog (#761)

Co-authored-by: alenakhineika <[email protected]>

* feat(telemetry): report host_id for atlas COMPASS-8092 (#763)

* feat(telemetry): report host_id for atlas in VSCode COMPASS-8092

* test: add atlas host test and clean up

* feat(telemetry): update new connection telemetry VSCODE-560 (#764)

* feat(telemetry): update new connection telemetry VSCODE-560

* refactor: remove server_os

* refactor: rename to atlas_hostname

* docs: add comment

* refactor(telemetry): use resolved srv from topology VSCODE-563 (#765)

* Update changelog (#766)

Co-authored-by: alenakhineika <[email protected]>

* feat(telemetry): handle IPv6 addresses when parsing hostnames VSCODE-585 (#769)

* feat(telemetry): handle IPv6 addresses when parsing hostnames VSCODE-585

* test: fallback to original uri

* chore: reduce bundle size and add modules to externals

* chore(deps): remove unused auto-prefixer (#771)

* chore: use Node.js 20 in CI VSCODE-586 (#770)

* chore: use Node.js 20 in CI VSCODE-586

* fix: try to resolve a regression of out of memory crashes of webpack

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mcasimir <[email protected]>
Co-authored-by: Rhys <[email protected]>
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