Skip to content

Commit

Permalink
Add UUIDs to notebook telemetry (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-nillion authored Aug 8, 2024
1 parent fab0fed commit 1e6c210
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
5 changes: 3 additions & 2 deletions examples/broadcasting/broadcasting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
"source": [
"import os\n",
"import time\n",
"import sys"
"import sys\n",
"import uuid"
]
},
{
Expand Down Expand Up @@ -149,7 +150,7 @@
"\n",
"# Set telemetry if opted in\n",
"if enable_telemetry:\n",
" identifier = \"nada-numpy-broadcasting\" + my_identifier\n",
" identifier = f\"nada-numpy-broadcasting-{str(uuid.uuid4())}-{my_identifier}\"\n",
" !echo 'yes' | nilup instrumentation enable --wallet {identifier}\n",
"\n",
"# Install the lastest SDK and initialise it\n",
Expand Down
5 changes: 3 additions & 2 deletions examples/dot_product/dot_product.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
"source": [
"import os\n",
"import time\n",
"import sys"
"import sys\n",
"import uuid"
]
},
{
Expand Down Expand Up @@ -168,7 +169,7 @@
"\n",
"# Set telemetry if opted in\n",
"if enable_telemetry:\n",
" identifier = \"nada-numpy-dot-product\" + my_identifier\n",
" identifier = f\"nada-numpy-dot-product-{str(uuid.uuid4())}-{my_identifier}\"\n",
" !echo 'yes' | nilup instrumentation enable --wallet {identifier}\n",
"\n",
"# Install the lastest SDK and initialise it\n",
Expand Down
5 changes: 3 additions & 2 deletions examples/linear_regression/linear_regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
"source": [
"import os\n",
"import time\n",
"import sys"
"import sys\n",
"import uuid"
]
},
{
Expand Down Expand Up @@ -164,7 +165,7 @@
"\n",
"# Set telemetry if opted in\n",
"if enable_telemetry:\n",
" identifier = \"nada-numpy-linear-regression-cf\" + my_identifier\n",
" identifier = f\"nada-numpy-linear-regression-cf-{str(uuid.uuid4())}-{my_identifier}\"\n",
" !echo 'yes' | nilup instrumentation enable --wallet {identifier}\n",
"\n",
"# Install the lastest SDK and initialise it\n",
Expand Down
5 changes: 3 additions & 2 deletions examples/matrix_multiplication/matrix_multiplication.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
"source": [
"import os\n",
"import time\n",
"import sys"
"import sys\n",
"import uuid"
]
},
{
Expand Down Expand Up @@ -149,7 +150,7 @@
"\n",
"# Set telemetry if opted in\n",
"if enable_telemetry:\n",
" identifier = \"nada-numpy-matrix-multiplication\" + my_identifier\n",
" identifier = f\"nada-numpy-matrix-multiplication-{str(uuid.uuid4())}-{my_identifier}\"\n",
" !echo 'yes' | nilup instrumentation enable --wallet {identifier}\n",
"\n",
"# Install the lastest SDK and initialise it\n",
Expand Down
5 changes: 3 additions & 2 deletions examples/rational_numbers/rational_numbers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
"source": [
"import os\n",
"import time\n",
"import sys"
"import sys\n",
"import uuid"
]
},
{
Expand Down Expand Up @@ -149,7 +150,7 @@
"\n",
"# Set telemetry if opted in\n",
"if enable_telemetry:\n",
" identifier = \"nada-numpy-rational-numbers\" + my_identifier\n",
" identifier = f\"nada-numpy-rational-numbers-{str(uuid.uuid4())}-{my_identifier}\"\n",
" !echo 'yes' | nilup instrumentation enable --wallet {identifier}\n",
"\n",
"# Install the lastest SDK and initialise it\n",
Expand Down

0 comments on commit 1e6c210

Please sign in to comment.