Skip to content

Commit fa301fe

Browse files
committed
Add example of global fingerprint setting
1 parent 393834c commit fa301fe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

platform-includes/set-fingerprint/basic/native.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
You can set a fingerprint to be added to all future events and errors:
2+
```c
3+
#include <sentry.h>
4+
5+
sentry_set_fingerprint("myFingerPrint", NULL); // overwrites existing fingerprints
6+
my_fingerprinted_function(); // events are grouped on "myFingerPrint"
7+
8+
sentry_clear_fingerprint(); // clears all fingerprints
9+
```
10+
11+
For manually captured events, fingerprints can be added to the `fingerprint` key of the event. This will be prioritized over the globally set fingerprint:
12+
113
```cpp
214
#include <sentry.h>
315

0 commit comments

Comments
 (0)