Skip to content
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

Instrument feature for functions #29

Open
mperdeck opened this issue Mar 9, 2014 · 0 comments
Open

Instrument feature for functions #29

mperdeck opened this issue Mar 9, 2014 · 0 comments

Comments

@mperdeck
Copy link
Owner

mperdeck commented Mar 9, 2014

Feature that allows you to instrument all functions in a namespace (which is a variable containing an object that contains members of type function). Option to only instrument those functions whose names match one of a list of regexs (only works if the functions are not anonymous).

Instrumentation options:

  1. surround with try catch (catch exception, log it, rethrow with a flag saying it has been logged to prevent relogging)
  2. log parameter values (DEBUG logger)
  3. try finally to measure execution time of the function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant