Skip to content

Perform operations after crash #720

@arijith96

Description

@arijith96

Description

When does the problem happen

  • During build
  • During run-time
  • When capturing a hard crash

Environment

  • OS: [e.g. Windows 10, 64-bit] Windows 10, 64-bit
  • Compiler: [e.g. MSVC 19] MSVC 19
  • CMake version and config: [e.g. 3.17.2, SENTRY_BACKEND=inproc] 3.16.4, SENTRY_BACKEND=crashpad_handler

Steps To Reproduce

I wanted to know how I could perform some operations right after a crash has occurred, since I want to do somethings like the following:

  • trim a log file to include only the last 100 lines and then write it into a file and upload that file along with the crash report to sentry
  • zip a certain file and send it along the crash report

I came across before_send() but as stated in the docs, but it states that crashpad does not invoke this when a crash occurs. Please note that my primary intention is for crashes only and not for any message/error events.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions