-
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
fix: make sure functions can be excluded #263
Conversation
c68affa
to
9a8167d
Compare
I set this in my requirements.txt
My appmap.yml
and pip installed
ran this:
The subsequent appmap details when running the stats command
i.e. nothing. If I run this again on the old version of appmap-python i would get the following.
So looks like this is working for me now. |
Great, @petecheslock, thanks for checking this out. With this config, only functions in the module If you'd like to have other functions instrumented as well, try this config: appmap_dir: tmp/appmap
language: python
name: django-oscar
packages:
- path: oscar
exclude:
- apps.catalogue.abstract_models.AbstractCategory.get_ancestors_and_self which is, admittedly, a little awkward. I'd really been hoping to support a config like appmap_dir: tmp/appmap
language: python
name: django-oscar
packages:
- path: oscar.apps.catalogue.abstract_models
exclude:
- AbstractCategory.get_ancestors_and_self
- path: oscar where the order of the |
Ah great! I was experimenting with the later config seeing if that would do what I needed but I'll use the top one to instrument the rest of the packages and give this a try now. |
Changes in 68ff82e meant that it was no longer possible to exclude a function by name. These changes make it work again.
9a8167d
to
d7518ee
Compare
Changes in 68ff82e meant that it was no longer possible to exclude a function by name. These changes make it work again.
Fixes #262.