Skip to content

Commit 53a3088

Browse files
committed
Disable telemetry in all profiling scripts
Pass enable_telemetry=False to sql.connect() to avoid telemetry HTTP calls during profiling runs. Co-authored-by: Isaac
1 parent 763bdf3 commit 53a3088

6 files changed

Lines changed: 6 additions & 0 deletions

examples/cleanup_column_tags.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def cleanup_table(table_name):
3333
http_path=HTTP_PATH,
3434
access_token=ACCESS_TOKEN,
3535
_tls_no_verify=True,
36+
enable_telemetry=False,
3637
) as conn:
3738
with conn.cursor() as cursor:
3839
# --- Clean up column tags ---

examples/profile_column_tags.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def conn_params() -> dict:
117117
"http_path": HTTP_PATH,
118118
"access_token": ACCESS_TOKEN,
119119
"_tls_no_verify": True,
120+
"enable_telemetry": False,
120121
}
121122

122123

examples/profile_read_then_write_table_tags.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def conn_params() -> dict:
105105
"http_path": HTTP_PATH,
106106
"access_token": ACCESS_TOKEN,
107107
"_tls_no_verify": True,
108+
"enable_telemetry": False,
108109
}
109110

110111

examples/profile_read_then_write_tags.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def conn_params() -> dict:
106106
"http_path": HTTP_PATH,
107107
"access_token": ACCESS_TOKEN,
108108
"_tls_no_verify": True,
109+
"enable_telemetry": False,
109110
}
110111

111112

examples/profile_table_tags.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def conn_params() -> dict:
116116
"http_path": HTTP_PATH,
117117
"access_token": ACCESS_TOKEN,
118118
"_tls_no_verify": True,
119+
"enable_telemetry": False,
119120
}
120121

121122

examples/test_connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
http_path=HTTP_PATH,
2424
access_token=ACCESS_TOKEN,
2525
_tls_no_verify=True,
26+
enable_telemetry=False,
2627
) as conn:
2728
print(f"Connected in {time.time() - t0:.2f}s")
2829

0 commit comments

Comments
 (0)