Skip to content

Commit c801d96

Browse files
committed
feat: wip
1 parent 8158253 commit c801d96

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

posthog/exception_utils.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -735,11 +735,6 @@ def set_in_app_in_frames(frames, in_app_exclude, in_app_include, project_root=No
735735
frame["in_app"] = True
736736
continue
737737

738-
# Mark __main__ module as in_app by default (user's main script)
739-
if module == "__main__":
740-
frame["in_app"] = True
741-
continue
742-
743738
return frames
744739

745740

test.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
from posthog import Posthog
2+
3+
posthog = Posthog(
4+
'phc_J1o2BXYxzXBHJeG2mS5hk62ijkTWk38Z385lO0MhU5w',
5+
host='http://localhost:8010',
6+
debug=True,
7+
enable_exception_autocapture=True,
8+
code_variables_enabled=True
9+
)
10+
11+
def intermediate_function():
12+
something_intermediate = "something_intermediate"
13+
process()
14+
15+
def process():
16+
count = 100
17+
name = "test_user"
18+
active = False
19+
config = {"timeout": 30, "retries": 3}
20+
21+
result = None.some_method()
22+
23+
intermediate_function()
24+

0 commit comments

Comments
 (0)