Skip to content
This repository was archived by the owner on Apr 23, 2024. It is now read-only.

Papertrail integration

Fabio Russo edited this page Aug 4, 2021 · 3 revisions

Setting up your BugReplay account Integration with Papertrail

Along with BugReplay Fullstack come some third party integrations to make your life easier if you're already using those tools actively in your workflow.

To integrate your Papertrail account please make sure you have the Fullstack Addon on the BugReplay account you're using. Then go to the Integrations link on the left.

Once on the Integrations page locate "Papertrail" and click on the "Add" button. A form will b e shown like this:

If you would like to filter by a specific application you can specify it on the form. It is however completely optional and can be left blank.

Then click on "Save" to add the Papertrail integration to your BugReplay account.

Using BugReplay with Sentry in your code

if you have fullstack enabled and are recording a bugreplay report on your own site you can do this from the backend:

First you need to get the bugreplay-recording-uuid from the request header like this:

var brHeader = req.header('bugreplay-recording-uuid')
    if (!brHeader) {
        return res.json({
            "success": "false",
            "error": "No BugReplay-Recording-UUID, doing nothing"
        })
    }

And then you can simply log and make sure that the brHeader value is in the log you are sending e.g.

console.log("[" + brHeader + "] This is a sample line that will be shown on Papertrail from your app")

Displaying the Papertrail data from your BugReplay report video

Once you have made a BugReplay recording of your backend with the correct Papertrail logs, where you made sure to send along the BugReplay recording header, you will see a tab called "Papertrail" and there will be a link to your Papertrail account with a custom search query that includes the tag you created with the bugreplay-recording-uuid for the specific report recording you are looking at. So you'll conveniently only see the papertrail log lines pertaining to your recording.

Which will open a tab directly to your filtered data on Papertrail

Clone this wiki locally