Skip to content

Commit

Permalink
Track remote server names (#15002)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne authored Jan 9, 2024
1 parent e42b30f commit 6331b90
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/standalone/userJupyterServer/userServerUrlProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ import { getTelemetrySafeHashedString } from '../../platform/telemetry/helpers';
import { generateIdFromRemoteProvider } from '../../kernels/jupyter/jupyterUtils';
import { isWeb } from '../../platform/vscode-path/platform';
import { DisposableBase } from '../../platform/common/utils/lifecycle';
import { trackRemoteServerDisplayName } from '../../kernels/jupyter/connection/jupyterServerProviderRegistry';

export const UserJupyterServerUriListKey = 'user-jupyter-server-uri-list';
export const UserJupyterServerUriListKeyV2 = 'user-jupyter-server-uri-list-version2';
Expand Down Expand Up @@ -724,6 +725,15 @@ export class UserJupyterServerUrlProvider
uri: url,
serverInfo: jupyterServerUri
});
trackRemoteServerDisplayName(
{
extensionId: this.extensionId,
id: this.id,
handle
},
jupyterServerUri.displayName
);

sendRemoteTelemetryForAdditionOfNewRemoteServer(handle, jupyterServerUri.baseUrl, isJupyterHub);
return handle;
} catch (ex) {
Expand Down

0 comments on commit 6331b90

Please sign in to comment.