-
Notifications
You must be signed in to change notification settings - Fork 655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial prototype of telemetry hook #7443
Initial prototype of telemetry hook #7443
Conversation
@@ -20,4 +20,7 @@ | |||
"get_logger", | |||
"enable_logging", | |||
"disable_logging", | |||
"emit_telemetry_event", |
Check failure
Code scanning / CodeQL
Explicit export is not defined Error
@@ -20,4 +20,7 @@ | |||
"get_logger", | |||
"enable_logging", | |||
"disable_logging", | |||
"emit_telemetry_event", | |||
"add_telemetry_handler", |
Check failure
Code scanning / CodeQL
Explicit export is not defined Error
@@ -20,4 +20,7 @@ | |||
"get_logger", | |||
"enable_logging", | |||
"disable_logging", | |||
"emit_telemetry_event", | |||
"add_telemetry_handler", | |||
"clear_telemetry_handler" |
Check failure
Code scanning / CodeQL
Explicit export is not defined Error
try: | ||
result = obj(*args, **kwargs) | ||
emit_telemetry_event('', api_call_name, time.time() - start_time) |
Check failure
Code scanning / CodeQL
Wrong number of arguments in a call Error
function emit_telemetry_event
# to collect discrete data on how modin is performing at the | ||
# high level moden layer. | ||
def emit_telemetry_event(msg:str, value:int|float): | ||
_telemetry_handlers |
Check notice
Code scanning / CodeQL
Statement has no effect Note
try: | ||
with timeout(seconds=1): | ||
fn(f"modin::{msg}", value) | ||
except: |
Check notice
Code scanning / CodeQL
Except block handles 'BaseException' Note
except: | ||
logging.ERROR("telemetry handler threw exception, removing handler: " + e) | ||
_telemetry_handlers.remove(fn) | ||
pass |
Check warning
Code scanning / CodeQL
Unnecessary pass Warning
_telemetry_handlers.append(handler) | ||
|
||
def clear_telemetry_handler(handler): | ||
_telemetry_handlers = [] |
Check notice
Code scanning / CodeQL
Unused local variable Note
What do these changes do?
flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
git commit -s
docs/development/architecture.rst
is up-to-date