You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `trackClicks` | `boolean` | `true` | Automatically track UI click events. Captures element selector, coordinates, and other click metadata. |
206
+
| `beforeBreadcrumb` | `function` | `undefined` | Hook called before each breadcrumb is stored. Receives `(breadcrumb, hint)` and can return modified breadcrumb, `null` to discard it, or the original breadcrumb. Useful for filtering sensitive data or PII. |
207
+
208
+
### Manual Breadcrumbs
209
+
210
+
Add custom breadcrumbs manually:
211
+
212
+
```js
213
+
hawk.breadcrumbs.add({
214
+
type:'logic',
215
+
category:'auth',
216
+
message:'User logged in',
217
+
level:'info',
218
+
data: { userId:'123' }
219
+
});
220
+
```
221
+
222
+
### Breadcrumb Methods
223
+
224
+
```js
225
+
// Add a breadcrumb
226
+
hawk.breadcrumbs.add(breadcrumb, hint);
227
+
228
+
// Get current breadcrumbs
229
+
constbreadcrumbs=hawk.breadcrumbs.get();
230
+
231
+
// Clear all breadcrumbs
232
+
hawk.breadcrumbs.clear();
233
+
```
234
+
148
235
## Source maps consuming
149
236
150
237
If your bundle is minified, it is useful to pass source-map files to the Hawk. After that you will see beautiful
0 commit comments