educational-technology-collective / jupyterlab-pioneer

A JupyterLab extension for generating and exporting JupyterLab event telemetry data.
https://jupyterlab-pioneer.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11 stars 2 forks source link

Need a way to filter events #10

Closed cab938 closed 10 months ago

cab938 commented 11 months ago

Not all exporters need all events, how should we filter them?

Proposal:

  1. if there is no mention then log all events which are captured
  2. add an "event_inclusion" line to the exporter which contains a list of patterns (regex?) which can be used on an event received to determine if it should be logged.
mengyanw commented 11 months ago

Should the logNotebookContentEvents flag (that decides whether to log the entire notebook content or not) also be a part of the filter? If the events to log are decided based on individual exporters, the original activeEvents flag which controls the activated event for all the exporters would be redundant. Or the extension may filter the event library using activeEvents first and then event_inclusion?