@@ -12,16 +12,34 @@ class User(TypedDict):
1212 image : str # User's public picture
1313 url : str # URL for user's details page
1414
15- class HawkCatcherSettings (TypedDict , Generic [T ]):
16- """Settings for Hawk catcher for errors tracking"""
17-
15+ class HawkCatcherSettings (Generic [T ]):
16+ """Base settings for Hawk catcher for errors tracking"""
1817 token : str # Hawk integration token
1918 collector_endpoint : str # Collector endpoint for sending event to
2019 release : str # Release name for Suspected Commits feature
2120 before_send : Callable [[dict ], None ] # This hook allows you to filter any data you don't want sending to Hawk
2221 context : dict # Additional context to be send with event
23- with_addons : bool = True # This parameter points if you want to send framework data with error (cookies, headers, params, form, json)
24- set_user : Callable [[T ], User ] # This hook allows you to set user information, this hook is useful for frameworks
22+ with_addons : bool # This parameter points if you want to send framework data with error (cookies, headers, params, form, json)
23+
24+ def __init__ (
25+ self ,
26+ * ,
27+ token : str ,
28+ collector_endpoint : str ,
29+ release : str ,
30+ before_send : Callable [[dict ], None ],
31+ context : dict ,
32+ with_addons : bool ,
33+ set_user : Callable [[T ], User ]
34+ ):
35+ self .token = token
36+ self .collector_endpoint = collector_endpoint
37+ self .release = release
38+ self .before_send = before_send
39+ self .context = context
40+ self .with_addons = with_addons
41+ self .set_user = set_user
42+
2543
2644class Addons (TypedDict ):
2745 """Additional data to be send with event due to frameworks"""
0 commit comments