Files
azuredatastudio/extensions/sql-migration/package.json
AkshayMata bf05ea69ef [SQL-Migration] Login migrations telemetry (#22038)
This PR enhances telemetry for login migrations (and in the following ways:

Add details for starting migration (number of logins migrating, type of logins)
Log Migration result (number of errors per step, duration of each step, type of logins, if system error occurred)
Add sql-migration extension to our telemetry
Adds details when trying to connect to target
Tracks clicking "done" from the wizard
Fixes bucketizing for navigating telemetry in the login migration wizard
Sample usage of kusto query for new telemetry:
RawEventsADS
| where EventName contains 'sql-migration'
| extend view = tostring(Properties['view'])
| extend action = tostring(Properties['action'])
| extend buttonPressed = tostring(Properties['buttonpressed'])
| extend pageTitle = tostring(Properties['pagetitle'])
| extend adsVersion = tostring(Properties['common.adsversion'])
| extend targetType = tostring(Properties['targettype'])
| extend tenantId = tostring(Properties['tenantid'])
| extend subscriptionId = tostring(Properties['subscriptionid'])
| where view contains "login"
//| where adsVersion contains "1.42.0-insider"
| where ClientTimestamp >= ago(18h)
| project EventName, ClientTimestamp, SessionId, view, pageTitle, action, buttonPressed, targetType
, tenantId, subscriptionId
, adsVersion, OSVersion, Properties
2023-03-01 10:55:01 -08:00

171 lines
4.7 KiB
JSON

{
"name": "sql-migration",
"displayName": "%displayName%",
"description": "%description%",
"version": "1.4.2",
"publisher": "Microsoft",
"preview": false,
"license": "https://raw.githubusercontent.com/Microsoft/azuredatastudio/main/LICENSE.txt",
"icon": "images/extension.png",
"aiKey": "29a207bb14f84905966a8f22524cb730-25407f35-11b6-4d4e-8114-ab9e843cb52f-7380",
"engines": {
"vscode": "*",
"azdata": ">=1.41.0"
},
"activationEvents": [
"onDashboardOpen",
"onCommand:sqlmigration.start",
"onCommand:sqlmigration.newsupportrequest",
"onCommand:sqlmigration.sendfeedback",
"onCommand:sqlmigration.openNotebooks"
],
"capabilities": {
"virtualWorkspaces": false,
"untrustedWorkspaces": {
"supported": true
}
},
"main": "./out/main",
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/azuredatastudio.git"
},
"extensionDependencies": [
"Microsoft.mssql"
],
"contributes": {
"commands": [
{
"command": "sqlmigration.start",
"title": "%start-migration-command%",
"category": "%migration-command-category%",
"icon": "./images/migration.svg"
},
{
"command": "sqlmigration.newsupportrequest",
"title": "%new-support-request-command%",
"category": "%migration-command-category%",
"icon": "./images/newSupportRequest.svg"
},
{
"command": "sqlmigration.sendfeedback",
"title": "%send-feedback-command%",
"category": "%migration-command-category%",
"icon": "./images/sendFeedback.svg"
},
{
"command": "sqlmigration.openNotebooks",
"title": "%migration-notebook-command-title%",
"category": "%migration-command-category%"
},
{
"command": "sqlmigration.cutover",
"title": "%complete-cutover-menu%",
"category": "%migration-context-menu-category%"
},
{
"command": "sqlmigration.view.database",
"title": "%database-details-menu%",
"category": "%migration-context-menu-category%"
},
{
"command": "sqlmigration.view.target",
"title": "%view-target-menu%",
"category": "%migration-context-menu-category%"
},
{
"command": "sqlmigration.view.service",
"title": "%view-service-menu%",
"category": "%migration-context-menu-category%"
},
{
"command": "sqlmigration.copy.migration",
"title": "%copy-migration-menu%",
"category": "%migration-context-menu-category%"
},
{
"command": "sqlmigration.cancel.migration",
"title": "%cancel-migration-menu%",
"category": "%migration-context-menu-category%"
},
{
"command": "sqlmigration.retry.migration",
"title": "%retry-migration-menu%",
"category": "%migration-context-menu-category%"
}
],
"menu": {
"commandPalette": [
{
"command": "sqlmigration.newsupportrequest",
"when": "false"
},
{
"command": "sqlmigration.sendfeedback",
"when": "false"
},
{
"command": "sqlmigration.cutover",
"when": "false"
},
{
"command": "sqlmigration.view.database",
"when": "false"
},
{
"command": "sqlmigration.view.target",
"when": "false"
},
{
"command": "sqlmigration.view.service",
"when": "false"
},
{
"command": "sqlmigration.copy.migration",
"when": "false"
},
{
"command": "sqlmigration.cancel.migration",
"when": "false"
},
{
"command": "sqlmigration.retry.migration",
"when": "false"
}
]
},
"dashboard.tabs": [
{
"id": "migration-dashboard",
"description": "%migration-dashboard-title%",
"provider": "MSSQL",
"title": "%migration-dashboard-title%",
"icon": {
"light": "./images/migration.svg",
"dark": "./images/migration.svg"
},
"when": "connectionProvider == 'MSSQL' && !mssql:iscloud && mssql:engineedition != 8",
"hideRefreshTask": true,
"container": {
"modelview-container": null
}
}
]
},
"dependencies": {
"dataprotocol-client": "github:Microsoft/sqlops-dataprotocolclient#1.3.1",
"@microsoft/ads-service-downloader": "^1.1.0",
"@microsoft/ads-extension-telemetry": "^1.4.0",
"uuid": "^8.3.2",
"vscode-nls": "^4.1.2"
},
"__metadata": {
"publisherDisplayName": "Microsoft",
"publisherId": "Microsoft",
"id": "81"
},
"devDependencies": {
"@types/uuid": "^8.3.1"
}
}