Skip to content

Commit 870eb69

Browse files
authored
Merge pull request #62 from PriorLabs/ENG-444
Detect additional runtimes + track install_id across model calls
2 parents a4d0d02 + 3d42c92 commit 870eb69

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

src/tabpfn_common_utils/telemetry/core/events.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,9 @@ class ModelCallEvent(BaseTelemetryEvent):
439439
# Task associated with the model call
440440
task: Literal["classification", "regression"]
441441

442+
# Install ID of the user
443+
install_id: str = field(default_factory=_get_install_id, init=False)
444+
442445
# Version of the PyTorch
443446
torch_version: str = field(default_factory=_get_torch_version, init=False)
444447

src/tabpfn_common_utils/telemetry/core/runtime.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"aws",
2020
"azure",
2121
"databricks",
22+
"modal",
23+
"mlflow",
24+
"kubernetes",
2225
]
2326

2427
# Static list of environment hints, purely heuristic based on env variables.
@@ -50,6 +53,15 @@
5053
"DATABRICKS_WORKSPACE_URL",
5154
"DB_IS_DRIVER",
5255
],
56+
"modal": ["MODAL_CLOUD_PROVIDER", "MODAL_IMAGE_ID", "MODAL_REGION"],
57+
"mlflow": [
58+
"MLFLOW_RUN_ID",
59+
"MLFLOW_RUN_NAME",
60+
],
61+
"kubernetes": [
62+
"KUBERNETES_SERVICE_HOST",
63+
"KUBERNETES_POD_NAME",
64+
],
5365
# Cloud providers
5466
"aws": [
5567
# Generic AWS environment hints

0 commit comments

Comments
 (0)