Skip to content

[#256] Flag to disable static request recording - #288

Closed
mavwolverine wants to merge 0 commit into
getappmap:masterfrom
mavwolverine:master
Closed

[#256] Flag to disable static request recording #288
mavwolverine wants to merge 0 commit into
getappmap:masterfrom
mavwolverine:master

Conversation

@mavwolverine

Copy link
Copy Markdown
Contributor

APPMAP_ENABLED_STATIC_REQUEST_RECORDINGS=false flask --app main run

Submitting draft code - please adapt as seen fit.

@mavwolverine

Copy link
Copy Markdown
Contributor Author

@apotterri @brikelly Let me know your thoughts.

@apotterri
apotterri marked this pull request as ready for review February 29, 2024 20:46
@apotterri
apotterri marked this pull request as draft February 29, 2024 20:49
@apotterri
apotterri self-requested a review March 1, 2024 15:16

@apotterri apotterri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much for this. I suggested one minor change.

It was also be very helpful it you could add a test or two.

(Also, FYI, Brian is no longer with AppMap.)

Comment thread _appmap/env.py Outdated

self._configure_logging()
self._enabled = self._env.get("APPMAP", "").lower() != "false"
self._enabled_static_request_recordings = self._env.get("APPMAP_ENABLED_STATIC_REQUEST_RECORDINGS", "").lower() != "false"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe APPMAP_RECORD_STATIC_REQUESTS instead? That would be somewhat more consistent with other env vars.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@apotterri I had thought of it at first, but then thought it might interfere with https://github.com/getappmap/appmap-python/blob/master/_appmap/env.py#L18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants