-
Notifications
You must be signed in to change notification settings - Fork 16
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
disable recording by default #305
Conversation
c8b5dda
to
b4c4ba7
Compare
Make sure `APPMAP_RECORD_REQUESTS=true` will generate request recordings when running tests. Previously, it was ignored, and request recordings were never generated when tests were run.
Combine APPMAP_RECORD_PYTEST and APPMAP_RECORD_UNITTEST into APPMAP_RECORD_TESTS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly ok, though explicitly setting APPMAP=false
(or anything else than true
) should not cause a warning. (BTW, I noticed that with the previous version APPMAP=false
doesn't seem to do anything at all — warning is still displayed and appmaps are still recorded.)
docs/recording-env-vars.md
Outdated
@@ -3,11 +3,11 @@ recording types. In each case, ✓ means that the corresponding recording type | |||
will be produced, ❌ means that it will not. | |||
|
|||
## Web Apps | |||
These tables describe how `APPMAP_RECORD_REQUEST` and `APPMAP_RECORD_REMOTE` are | |||
These tables describe how `APPMAP_RECORD_REQUESTS and `APPMAP_RECORD_REMOTE` are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed a backtick here.
appmap/__init__.py
Outdated
def enabled(): | ||
return Env.current.enabled | ||
else: | ||
print(_DISABLED_BY_DEFAULT_MSG, file=sys.stderr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this cause the warning to be displayed even if the user explicitly sets APPMAP=false
?
This seems very annoying.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I noticed this was wrong right before I read your comment. I adjusted the indentation of the else
, should work properly now.
Also, fix a typo.
Recording is no longer enabled by default. It is now necessary to run scripts with appmap-python, or explicitly set APPMAP=true BREAKING CHANGE: disable record by default
It doesn't make sense (and doesn't work) to try to capture other recording types when the user says they want a process recording (by setting APPMAP_RECORD_PROCESS=true).
The agent no longer records by default. Code must be run with
appmap-python
, or withAPPMAP=true
to create AppMap data files.Additionally,
APPMAP_RECORD_PYTEST
andAPPMAP_RECORD_UNITTEST
have been replaced byAPPMAP_RECORD_TESTS
. Also,APPMAP_RECORD_PROCESS
now disables other recording types.Fixes #299.
Fixes #300.
Fixes #301.
Fixes #307.