Skip to content

Commit aa758d2

Browse files
authored
Added telemetry for artifact deployment properties (#2679)
## Changes Added telemetry for artifact deployment properties ## Why This allows us to get insights into usage of - Wheel patching - Python trampoline for an older DBRs - Build command inferring vs. explicit command - How often build files for artifacts are specified ## Tests Added acceptance test <!-- If your PR needs to be included in the release notes for next release, add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
1 parent 8e29f69 commit aa758d2

File tree

35 files changed

+266
-16
lines changed

35 files changed

+266
-16
lines changed

acceptance/bundle/telemetry/deploy-artifact-path-type/output.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ Deployment complete!
3232
"complex_variable_count": 0,
3333
"lookup_variable_count": 0,
3434
"target_count": 2,
35+
"bool_values": [
36+
{
37+
"key": "python_wheel_wrapper_is_set",
38+
"value": false
39+
}
40+
],
3541
"bundle_mode": "TYPE_UNSPECIFIED",
3642
"workspace_artifact_path_type": "WORKSPACE_FILE_SYSTEM"
3743
}
@@ -58,6 +64,12 @@ Deployment complete!
5864
"complex_variable_count": 0,
5965
"lookup_variable_count": 0,
6066
"target_count": 2,
67+
"bool_values": [
68+
{
69+
"key": "python_wheel_wrapper_is_set",
70+
"value": false
71+
}
72+
],
6173
"bundle_mode": "TYPE_UNSPECIFIED",
6274
"workspace_artifact_path_type": "UC_VOLUME"
6375
}

acceptance/bundle/telemetry/deploy-artifact-path-type/script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ trace $CLI bundle deploy -t one
22

33
trace $CLI bundle deploy -t two
44

5-
trace cat out.requests.txt | jq 'select(has("path") and .path == "/telemetry-ext") | .body.protoLogs.[] | fromjson | .entry.databricks_cli_log.bundle_deploy_event'
5+
trace cat out.requests.txt | jq 'select(has("path") and .path == "/telemetry-ext") | .body.protoLogs[] | fromjson | .entry.databricks_cli_log.bundle_deploy_event'
66

77
rm out.requests.txt

acceptance/bundle/telemetry/deploy-config-file-count/output.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ Deployment complete!
3939
"complex_variable_count": 0,
4040
"lookup_variable_count": 0,
4141
"target_count": 1,
42+
"bool_values": [
43+
{
44+
"key": "python_wheel_wrapper_is_set",
45+
"value": false
46+
}
47+
],
4248
"bundle_mode": "TYPE_UNSPECIFIED",
4349
"workspace_artifact_path_type": "WORKSPACE_FILE_SYSTEM"
4450
}

acceptance/bundle/telemetry/deploy-config-file-count/script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
trace $CLI bundle deploy
22

3-
trace cat out.requests.txt | jq 'select(has("path") and .path == "/telemetry-ext") | .body.protoLogs.[] | fromjson'
3+
trace cat out.requests.txt | jq 'select(has("path") and .path == "/telemetry-ext") | .body.protoLogs[] | fromjson'
44

55
cmd_exec_id=$(extract_command_exec_id.py)
66

acceptance/bundle/telemetry/deploy-mode/output.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ A common practice is to use a username or principal name in this path, i.e. use
3838
"complex_variable_count": 0,
3939
"lookup_variable_count": 0,
4040
"target_count": 2,
41+
"bool_values": [
42+
{
43+
"key": "python_wheel_wrapper_is_set",
44+
"value": false
45+
}
46+
],
4147
"bundle_mode": "DEVELOPMENT",
4248
"workspace_artifact_path_type": "WORKSPACE_FILE_SYSTEM"
4349
}
@@ -64,6 +70,12 @@ A common practice is to use a username or principal name in this path, i.e. use
6470
"complex_variable_count": 0,
6571
"lookup_variable_count": 0,
6672
"target_count": 2,
73+
"bool_values": [
74+
{
75+
"key": "python_wheel_wrapper_is_set",
76+
"value": false
77+
}
78+
],
6779
"bundle_mode": "PRODUCTION",
6880
"workspace_artifact_path_type": "WORKSPACE_FILE_SYSTEM"
6981
}

acceptance/bundle/telemetry/deploy-mode/script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ trace $CLI bundle deploy -t dev
22

33
trace $CLI bundle deploy -t prod
44

5-
trace cat out.requests.txt | jq 'select(has("path") and .path == "/telemetry-ext") | .body.protoLogs.[] | fromjson | .entry.databricks_cli_log.bundle_deploy_event'
5+
trace cat out.requests.txt | jq 'select(has("path") and .path == "/telemetry-ext") | .body.protoLogs[] | fromjson | .entry.databricks_cli_log.bundle_deploy_event'
66

77
rm out.requests.txt

acceptance/bundle/telemetry/deploy-no-uuid/output.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ Deployment complete!
4343
"complex_variable_count": 0,
4444
"lookup_variable_count": 0,
4545
"target_count": 1,
46+
"bool_values": [
47+
{
48+
"key": "python_wheel_wrapper_is_set",
49+
"value": false
50+
}
51+
],
4652
"bundle_mode": "TYPE_UNSPECIFIED",
4753
"workspace_artifact_path_type": "WORKSPACE_FILE_SYSTEM"
4854
}

acceptance/bundle/telemetry/deploy-no-uuid/script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
trace $CLI bundle deploy
22

3-
trace cat out.requests.txt | jq 'select(has("path") and .path == "/telemetry-ext") | .body.protoLogs.[] | fromjson'
3+
trace cat out.requests.txt | jq 'select(has("path") and .path == "/telemetry-ext") | .body.protoLogs[] | fromjson'
44

55
cmd_exec_id=$(extract_command_exec_id.py)
66

acceptance/bundle/telemetry/deploy-target-count/output.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ Deployment complete!
2727
"complex_variable_count": 0,
2828
"lookup_variable_count": 0,
2929
"target_count": 3,
30+
"bool_values": [
31+
{
32+
"key": "python_wheel_wrapper_is_set",
33+
"value": false
34+
}
35+
],
3036
"bundle_mode": "TYPE_UNSPECIFIED",
3137
"workspace_artifact_path_type": "WORKSPACE_FILE_SYSTEM"
3238
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
trace $CLI bundle deploy -t one
22

3-
trace cat out.requests.txt | jq 'select(has("path") and .path == "/telemetry-ext") | .body.protoLogs.[] | fromjson | .entry.databricks_cli_log.bundle_deploy_event'
3+
trace cat out.requests.txt | jq 'select(has("path") and .path == "/telemetry-ext") | .body.protoLogs[] | fromjson | .entry.databricks_cli_log.bundle_deploy_event'
44

55
rm out.requests.txt

0 commit comments

Comments
 (0)