Live Coding Workshop to Setup Rollbar Error Monitoring

Rate this content
Bookmark

During this session you will learn how to create a new Rollbar account and integrate the Rollbar SDK with your application to monitor errors in real-time and respond and fix those errors. We will also cover how to customize payload data sent to Rollbar to extend your monitoring capabilities.

Agenda:

- Create a Rollbar Account (Free Account)

- Integrate your application with the Rollbar SDK

- Send handled and unhandled errors to Rollbar

Add Custom payload data to your configuration.

Nico Krüger
Nico Krüger
48 min
25 Sep, 2023

Comments

Sign in or register to post your comment.

Video Summary and Transcription

Today's Workshop focused on setting up a Vue TypeScript project and integrating it with Rollbar for error monitoring. Participants learned how to modify code to be TypeScript compliant, connect Rollbar plugin and test components, and add additional data to the payload. The Workshop also covered customizing the payload, configuring Rollbar, and using the transform function to modify the payload. Overall, participants gained insights into handling errors, capturing telemetry data, and integrating Rollbar with other tools.

1. Introduction to the Workshop

Short description:

Thank you for joining the live coding workshop. I've added links to a GitHub repo with the Vue TS demo and a PDF with step-by-step instructions. We'll be setting up Rollbar in a Vue TypeScript application. Use the Rollbar registration link for a $250 credit to your account. Let's get started!

Thank you very much, and good day, everybody from wherever you're joining today. So this will be a live coding workshop. So I've added a couple of links for you today to follow. There's a GitHub repo, The Dev Factory, that's my GitHub. In there is the Vue TS demo, which is really what we're going to be ending up with. So that's the end product. But you can have that open to follow along. The second link is also in the repository. It is the PDF of the actual workshop, step by step, that we'll be running through. Now, this is really a beginner's step. It's more about setting up Rollbar, but we'll be using a Vue TypeScript application. So really beginner level, we just want to get the application up and running and get Rollbar installed as well. But feel free to use that PDF to go ahead and view the steps. The last link is at rollbar.com forward slash error push slash promo. When we get to the step to register your Rollbar account, please use that hyperlink. The reason for that is it does get you a $250 credit to your account for one year. So you can go ahead and use either Rollbar free account, or if you want to use a paid account, or even want to get this for your company, that gets you a nice little discount as well to get going on this product. So hopefully that helps get you started for the session.

2. Setting Up the Vue TypeScript Project

Short description:

Today, we'll be creating a view TypeScript project, setting up a Rollbar account, integrating the application with Rollbar, sending handled and unhandled errors, and customizing the payload and instrumentation. If you have the PDF open, you can go to the first step. Create a new Vue project using the command 'npm create vue-at-latest' and follow the prompts. Make sure you have read and write permissions for the project folder. If you encounter any issues, let me know.

Now, so what are we going to do today? So the first thing is we'll be running through a couple of steps. The step zero is we'll be creating a view TypeScript project. So that will be our first step. Then we'll be creating that Rollbar account with that hyperlink I gave you, the error push slash promo. Then we'll be integrating this application, so your application with Rollbar. Then we'll be sending a handled and unhandled error to Rollbar. And then at the end, we'll be looking at some ways to customize your payload and how you can instrument Rollbar in different ways for your application to get more relevant and more additional data into the system as well.

All right. So that will be what we'll be doing today. All right. So if you have the PDF open, I can put that to the side. For most of you, hopefully you're on a Mac or Windows machine, so it might be slightly different. I'm doing it on a Mac today. If you're doing it on a Windows machine, I do have a Windows machine next to me as well, so we can go ahead and run that as well. So if you do have a PDF open, you can go to the first step.

So what we're going to do first is we're going to go ahead and create a brand new Vue project. So for those of you it's npm create vue-at-latest. So if you start this command in your terminal window or command line on Windows, we'll go ahead and start the process to create our first project over here. Now what we'll get when we do this is we've got to give our project a name. Now, you can pick any name you really want. I'm going to go ahead and do the vue-ts-rollbar-demo. So a Vue TypeScript rollbar demo application. Next, do you want to do JavaScript or TypeScript? Now we're going to do TypeScript today, rollbar does work perfectly well with JavaScript. In fact, we're going to use the rollbar JavaScript SDK, in fact, to instrument this application. But again, for this example, today, we'll be using TypeScript. We're going to add JSX support as well. And yes, we want a single page application. Just say yes to all of these items. We won't be using all of them. But again, if you want to add some testing, you can as well. I'm just going to go ahead and do all of this. And you should end up with a screen like this.

Now what should have happened in the background over here, if we go to my computer, is we should have a brand new application created. If we go into my specific application over here, you see the Vue TS rollbar demo. Hopefully everybody has been able to go ahead and use that command line to go ahead and create that. And we'll just go up again. It is npm create vue at latest. I'm using the latest version of Vue over here. And of course, we're going to use Vite for TypeScript. So hopefully, you've got this up and running. Now, very important is the directory or folders we're working on, you need to read and write permission to them. So make sure you got your permissions all good there. I'm just going to go ahead and go into this specific folder right there. So there, we should have everything we want. Beautiful. All right. So if you're having a problem, let me know. But hopefully, everybody got over this one. This is pretty easy. The only thing that might be a problem is if you don't have some of the libraries installed.

Watch more workshops on topic

How to Solve Real-World Problems with Remix
Remix Conf Europe 2022Remix Conf Europe 2022
195 min
How to Solve Real-World Problems with Remix
Featured Workshop
Michael Carter
Michael Carter
- Errors? How to render and log your server and client errorsa - When to return errors vs throwb - Setup logging service like Sentry, LogRocket, and Bugsnag- Forms? How to validate and handle multi-page formsa - Use zod to validate form data in your actionb - Step through multi-page forms without losing data- Stuck? How to patch bugs or missing features in Remix so you can move ona - Use patch-package to quickly fix your Remix installb - Show tool for managing multiple patches and cherry-pick open PRs- Users? How to handle multi-tenant apps with Prismaa - Determine tenant by host or by userb - Multiple database or single database/multiple schemasc - Ensures tenant data always separate from others
Monitoring 101 for React Developers
React Advanced Conference 2023React Advanced Conference 2023
112 min
Monitoring 101 for React Developers
Top Content
WorkshopFree
Lazar Nikolov
Sarah Guthals
2 authors
If finding errors in your frontend project is like searching for a needle in a code haystack, then Sentry error monitoring can be your metal detector. Learn the basics of error monitoring with Sentry. Whether you are running a React, Angular, Vue, or just “vanilla” JavaScript, see how Sentry can help you find the who, what, when and where behind errors in your frontend project.
Get started with AG Grid Angular Data Grid
JSNation 2022JSNation 2022
116 min
Get started with AG Grid Angular Data Grid
WorkshopFree
Stephen Cooper
Stephen Cooper
Get started with AG Grid Angular Data Grid with a hands-on tutorial from the core team that will take you through the steps of creating your first grid, including how to configure the grid with simple properties and custom components. AG Grid community edition is completely free to use in commercial applications, so you’ll learn a powerful tool that you can immediately add to your projects. You’ll also discover how to load data into the grid and different ways to add custom rendering to the grid. By the end of the workshop, you will have created and customized an AG Grid Angular Data Grid.
Contents:- getting started and installing AG Grid- configuring sorting, filtering, pagination- loading data into the grid- the grid API- add your own components to the Grid for rendering and editing- capabilities of the free community edition of AG Grid
Solve 100% Of Your Errors: How to Root Cause Issues Faster With Session Replay
JSNation 2023JSNation 2023
44 min
Solve 100% Of Your Errors: How to Root Cause Issues Faster With Session Replay
WorkshopFree
Ryan Albrecht
Ryan Albrecht
You know that annoying bug? The one that doesn’t show up locally? And no matter how many times you try to recreate the environment you can’t reproduce it? You’ve gone through the breadcrumbs, read through the stack trace, and are now playing detective to piece together support tickets to make sure it’s real.
Join Sentry developer Ryan Albrecht in this talk to learn how developers can use Session Replay - a tool that provides video-like reproductions of user interactions - to identify, reproduce, and resolve errors and performance issues faster (without rolling your head on your keyboard).
Building a Serverless GraphQL API For Any Datasource With StepZen
GraphQL Galaxy 2021GraphQL Galaxy 2021
75 min
Building a Serverless GraphQL API For Any Datasource With StepZen
WorkshopFree
Roy Derks
Roy Derks
Want to get started with building a GraphQL server but have no idea where to begin? Every (frontend) developer asks for a GraphQL API but often lacks the backend knowledge to create a performant one. There are many different flavours in creating the perfect GraphQL server, ranging from schema-first to code-first or even auto-generated solutions.

In this interactive workshop, you will learn about building a serverless GraphQL API using StepZen. With StepZen, you can create a GraphQL for any data source (SQL, NoSQL & REST) and even other GraphQL APIs within minutes. And even handle more complicated use cases such as authentication and deployment. Using little code, you'll get to combine different data sources in one fully performant API that you can use in your applications from day one.

Table of contents:
- What is StepZen?
- Connecting to a data source (SQL, NoSQL & REST)
- Using custom directives
- Handle sequence flows
- Deployment

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Safely Handling Dynamic Data with TypeScript
Node Congress 2021Node Congress 2021
29 min
Safely Handling Dynamic Data with TypeScript
Top Content
TypeScript makes JavaScript safer adding static type definitions. Static definitions are wonderful; they prevent developers from making trivial mistakes ensuring every assignment and invocation is done correctly. A variable typed as a string cannot be assigned a number, and a function expecting three arguments cannot be called with only two. These definitions only exist at build time though; the code that is eventually executed is just JavaScript. But what about the response from an API request? In this talk Ethan Arrowood, Software Engineer 2 @ Microsoft, he will cover various solutions for safely typing dynamic data in TypeScript applications. This talk features popular technologies such as Fastify, JSON Schema, Node.js, and more!
Apache Kafka Simply Explained With TypeScript Examples
JSNation 2023JSNation 2023
27 min
Apache Kafka Simply Explained With TypeScript Examples
You’re curious about what Apache Kafka does and how it works, but between the terminology and explanations that seem to start at a complex level, it's been difficult to embark. This session is different. We'll talk about what Kafka is, what it does and how it works in simple terms with easy to understand and funny examples that you can share later at a dinner table with your family.
This session is for curious minds, who might have never worked with distributed streaming systems before, or are beginners to event streaming applications.
But let simplicity not deceive you - by the end of the session you’ll be equipped to create your own Apache Kafka event stream!
Mastering Error Handling Node.js
Node Congress 2022Node Congress 2022
21 min
Mastering Error Handling Node.js
Errors happen to every programmer. Devs have different choices: suppress it, notify the user, report to the team, ignore it or write code to handle the error.
In this talk, you will learn all the important aspects of the Node.js error system, the types of errors, different ways to deliver an error, and patterns to improve error handling - with examples!
The Art of Functional Programming
React Summit 2022React Summit 2022
26 min
The Art of Functional Programming
Functional Programming (FP), a paradigm in which programs are made up of pure, stateless functions, is adored by many programmers for how easy it makes it to predict, test, and debug the behavior of the code we write. Although FP has an unfortunate reputation as an ivory-tower domain full of obscure jargon comprehensible only to those with PhDs in category theory, the core concepts are straightforward ideas all of us can understand, and even have fun learning!
In this talk, we’ll create generative SVG art as a way to explore fundamental FP concepts such as recursion and function composition, and tackle the practical challenges of FP in the real world, such as dealing with the tricky parts like side effects and randomness which don’t fit into the safe, sterile world of pure functions. By the end of the talk we’ll not only have the key concepts & techniques we need to start writing our own functional programs, we’ll have some pretty functional art to look at too!
How Grafana Uses React to Power the World of Observability
React Summit 2023React Summit 2023
7 min
How Grafana Uses React to Power the World of Observability
Why does Grafana use React for its frontend?
How we leverage React’s features at Grafana
What are some pain points we have ran into with using React at Grafana
What are lessons learned from adopting React for the past 5+ years?
Track Slowdowns and Crashes in your React apps
React Advanced Conference 2021React Advanced Conference 2021
8 min
Track Slowdowns and Crashes in your React apps
In this lightning talk, you will see:The lack of visibility on React applicationsHow to install the Sentry React SDKHow Sentry can help you identify errors and slowdowns within your React App so you can see faster, solve quicker and continuously learn from your applications