SDK Fingerprinting

In supported SDKs, you can override the Sentry default grouping passing the fingerprint attribute an array of strings. The length of a fingerprint's array is not restricted. This works similarly to the server-side functionality, which is always available and can achieve similar results.

Basic Example

In the most basic of cases, values are passed directly:

Copied
import Sentry

SentrySDK.start { options in
    options.beforeSend = { event in
        event.fingerprint = ["my-view-function"]
        return event
    }
}

You can use variable substitution to fill dynamic values into the fingerprint generally computed on the server. For instance, the value {{ default }} can be added to add the entire normally generated grouping hash into the fingerprint. These values are the same as for server-side fingerprinting. See Variables for more information.

The platform or SDK you've selected either does not support this functionality, or it is missing from documentation.

If you think this is an error, feel free to let us know on GitHub.

The platform or SDK you've selected either does not support this functionality, or it is missing from documentation.

If you think this is an error, feel free to let us know on GitHub.

You can edit this page on GitHub.