Skip to content

Rollbar

Rollbar and Bird Eats Bug combine for faster, better testing and debugging.

Screenshot showing Rollbar event occurrences list. Some occurrences include Bird Eats Bug links.

What does this integration offer?

The integration connects errors in Rollbar to a Bird Eats Bug recording, allowing a much easier way to understand the user's experience when going over error data in Rollbar. There's a clear correlation between error data in Rollbar and issues reported from users with Bird Eats Bug.

Prerequisites

Make sure you have Rollbar installed in your application and either Bird Eats Bug SDK installed in your application or the browser extension installed in your browser.

Rollbar Configuration

The following Rollbar configuration change adds the URL returned by window.birdeatsbug?.session?.link || window.birdeatsbugExtension?.session?.link to the payload of Rollbar events.

js
const rollbarConfig = {
	// ...otherConfig
	transform: function (payload) {
		// Add the Bird Eats Bug session link to the payload, if it exists.
		const birdeatsbugSessionURL = window.birdeatsbug?.session?.link || window.birdeatsbugExtension?.session?.link
		if (birdeatsbugSessionURL) {
			payload.birdeatsbugSessionURL = birdeatsbugSessionURL
		}
		return payload
	},
}

Navigate to the Rollbar project you want to add the Service Link to. Add the new Service Link as:

text
{{birdeatsbugSessionURL}}

This service link in Rollbar will now open the Bird Eats Bug recording for you in a new browser tab allowing you to quickly view the user reported recording and associated data in Bird Eats Bug.

Limitations

Bird Eats Bug does not auto-upload recordings. The user has to take a submit action to upload the recording. This means that in the moment in time when an error occurs and is sent to Rollbar, it is only known whether there's an ongoing recording with Bird Eats Bug, and under which URL the recording will be accessible if the user uploads it. However, the user might choose not to upload the Bird Eats Bug recording. In this case, Rollbar will link to a Bird Eats Bug recording that is not accessible. Bird Eats Bug replay sessions reported with the browser extension will never be linked on Rollbar.