Skip to content

Commit

Permalink
fix: Do not store modules in transaction events (#490)
Browse files Browse the repository at this point in the history
* fix: Do not store modules in transaction events

* fix: Flip condition
  • Loading branch information
untitaker committed Aug 30, 2019
1 parent 87e5749 commit cdee59c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sentry_sdk/integrations/modules.py
Expand Up @@ -46,6 +46,11 @@ def setup_once():
@add_global_event_processor
def processor(event, hint):
# type: (Event, Any) -> Dict[str, Any]
if Hub.current.get_integration(ModulesIntegration) is not None:
event["modules"] = dict(_get_installed_modules())
if event.get("type") == "transaction":
return event

if Hub.current.get_integration(ModulesIntegration) is None:
return event

event["modules"] = dict(_get_installed_modules())
return event

0 comments on commit cdee59c

Please sign in to comment.