Skip to content

Commit

Permalink
refactor: rename to atlas_hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
alenakhineika committed Jul 29, 2024
1 parent abf3ec1 commit f03bedb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/telemetry/connectionTelemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type NewConnectionTelemetryEventProperties = {
auth_strategy?: string;
is_atlas?: boolean;
is_local_atlas?: boolean;
atlas_host_id?: string | null;
atlas_hostname?: string | null;
is_data_lake?: boolean;
is_enterprise?: boolean;
dl_version?: string | null;
Expand Down Expand Up @@ -154,7 +154,7 @@ export async function getConnectionTelemetryProperties(
...(await getHostInformation(resolvedHostname)),
auth_strategy: authStrategy,
is_atlas: isAtlas,
atlas_host_id: atlasHostId,
atlas_hostname: atlasHostId,
is_local_atlas: isLocalAtlas,
is_data_lake: dataLake.isDataLake,
dl_version: dataLake.version,
Expand Down
4 changes: 2 additions & 2 deletions src/test/suite/telemetry/connectionTelemetry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ suite('ConnectionTelemetry Controller Test Suite', function () {
);

expect(instanceTelemetry.is_atlas).to.equal(false);
expect(instanceTelemetry.atlas_host_id).to.equal(null);
expect(instanceTelemetry.atlas_hostname).to.equal(null);
expect(instanceTelemetry.is_atlas_url).to.equal(false);
expect(instanceTelemetry.is_local_atlas).to.equal(true);
});
Expand Down Expand Up @@ -152,7 +152,7 @@ suite('ConnectionTelemetry Controller Test Suite', function () {
);

expect(instanceTelemetry.is_atlas).to.equal(true);
expect(instanceTelemetry.atlas_host_id).to.equal(
expect(instanceTelemetry.atlas_hostname).to.equal(
'test-data-sets-a011bb.mongodb.net'
);
expect(instanceTelemetry.is_atlas_url).to.equal(true);
Expand Down

0 comments on commit f03bedb

Please sign in to comment.