Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RN v2.4.2: update docs with new custom error fingerprint argument #24248

Merged
merged 2 commits into from
Jul 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@

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.
marco-saia-datadog marked this conversation as resolved.
Show resolved Hide resolved

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
Loading