-
Notifications
You must be signed in to change notification settings - Fork 18
feat: Add APPMAP_DISPLAY_LABELED_PARAMS to capture params for labeled functions #384
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,8 +45,16 @@ def __init__(self, env=None, cwd=None): | |
| # them. | ||
| enabled = self._env.get("_APPMAP", None) | ||
| self._enabled = enabled is not None and enabled.lower() != "false" | ||
| display_params = self._env.get("_APPMAP_DISPLAY_PARAMS", None) | ||
| self._display_params = display_params is not None and display_params.lower() != "false" | ||
| display_params = self._env.get("_APPMAP_DISPLAY_PARAMS", "labeled").lower() | ||
| if display_params == "true": | ||
| self._display_params = True | ||
| self._display_labeled_params = True | ||
| elif display_params == "false": | ||
| self._display_params = False | ||
| self._display_labeled_params = False | ||
| else: # "labeled" or "auto" or anything else defaults to labeled | ||
| self._display_params = False | ||
| self._display_labeled_params = True | ||
|
Comment on lines
+48
to
+57
|
||
|
|
||
| logger = logging.getLogger(__name__) | ||
| # The user shouldn't set APPMAP_OUTPUT_DIR, but some tests depend on being able to use it. | ||
|
|
@@ -134,6 +142,10 @@ def is_appmap_repo(self): | |
| def display_params(self): | ||
| return self._display_params | ||
|
|
||
| @property | ||
| def display_labeled_params(self): | ||
| return self._display_labeled_params | ||
|
|
||
| def getLogger(self, name) -> trace_logger.TraceLogger: | ||
| return cast(trace_logger.TraceLogger, logging.getLogger(name)) | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.