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

RUMM-1805 Set PLCrashReporter custom path #692

Merged
merged 2 commits into from Dec 20, 2021

Conversation

maxep
Copy link
Member

@maxep maxep commented Dec 17, 2021

What and why?

Configure PLCrashReporter with a custom storage location to /Library/Caches/com.datadoghq.crash-reporting/v1.

By setting a custom path, we allow other instances of PLCrashReporter to work alongside the SDK without altering the reports.

How?

Sets the basePath property of the PLCrashReporterConfig.

The PLCrashReporter version has been incremented to 1.10.1 to use the [PLCrashReporter crashReportPath] in tests.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference

@maxep maxep requested a review from a team as a code owner December 17, 2021 13:00
@maxep maxep changed the title RUM-1805 Set PLCrashReporter custom path RUMM-1805 Set PLCrashReporter custom path Dec 17, 2021
@maxep maxep changed the title RUMM-1805 Set PLCrashReporter custom path RUMM-1805 Set PLCrashReporter custom path Dec 17, 2021
Copy link
Collaborator

@ncreated ncreated left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all good 👍.

Integration tests might be failing as we also need to update this path in our persistence helper used to ensure clear state for some integration tests.

@maxep
Copy link
Member Author

maxep commented Dec 20, 2021

@ncreated I need further investigation... It doesnt seem to be writing any report in the custom dir 🤔

@maxep maxep requested a review from ncreated December 20, 2021 14:17
@maxep
Copy link
Member Author

maxep commented Dec 20, 2021

I now let PLCR create the subdirectories by just providing the base path (not absolute string as before)

Copy link
Collaborator

@ncreated ncreated left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@maxep maxep merged commit 0ea2b5f into master Dec 20, 2021
@maxep maxep deleted the maxeo/RUMM-1805/crash-reports-location branch December 20, 2021 18:00
@ncreated ncreated mentioned this pull request Jan 11, 2022
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants