We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
feat: 接入Sentry用户IP信息
1 parent 00dbc16 commit 7adf458Copy full SHA for 7adf458
1 file changed
main.py
@@ -64,6 +64,9 @@ def before_send(event, hint):
64
traces_sample_rate=1.0,
65
)
66
67
+ # 只使用ip判断
68
+ sentry_sdk.set_user({"ip_address": "{{auto}}"})
69
+
70
wm.app_start_time = time.perf_counter()
71
72
shared_memory, is_first_instance = check_single_instance()
0 commit comments