jupyter-server / jupyter-scheduler

Run Jupyter notebooks as jobs
https://jupyter-scheduler.readthedocs.io
BSD 3-Clause "New" or "Revised" License
200 stars 23 forks source link

Emit telemetry event on "Run job with input folder" checkbox click #523

Closed andrii-i closed 5 months ago

andrii-i commented 6 months ago

Emit create-job.options.package_input_folder.{check/uncheck} on "Run job with input folder" checkbox click. Metric name is proposed because it is semantically in line with metrics already being emitted: 1, 2, 3.

Note that by default LogContext is empty so telemetry goes nowhere (Jupyter Scheduler operator needs to overwrite it with a custom logging function to actually use telemetry). So this PR is in line what we are already doing and does not expose Jupyter Scheduler users to anything.

sravyasdh commented 6 months ago

LGTM! Thank you for adding this!