Skip to content

Commit

Permalink
RN v2.4.2: custom error fingerprint
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-saia-datadog committed Jul 22, 2024
1 parent 99c4eb9 commit 5438e4d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions content/en/logs/log_collection/reactnative.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,21 @@ This means that even if users open your application while being offline, no data
The data on disk will automatically be discarded if it gets too old to ensure the SDK doesn't use too much disk space.

## Custom Error Fingerprint

Check warning on line 183 in content/en/logs/log_collection/reactnative.md

View workflow job for this annotation

GitHub Actions / vale

Datadog.headings

'Custom Error Fingerprint' should use sentence-style capitalization.

Starting from v2.4.2, you can add a custom fingerprint to the error logs by using the `fingerprint` argument:

```ts
export type LogWithErrorArguments = [
message: string,
errorKind?: string,
errorMessage?: string,
stacktrace?: string,
context?: object,
fingerprint?: string
];
```

## Further Reading

{{< partial name="whats-next/whats-next.html" >}}
Expand Down

0 comments on commit 5438e4d

Please sign in to comment.