Laravelstream· Jun 18, 2025· 1:25:31· 1,812 views on YouTube
React at a moment you like. The best moments light up here.
Heat. [Music] Heat.
[Music] Hey, [Music] hey, hey. [Music]
Happy [Music] birthday. [Music]
We are live. Welcome to a very special edition of the Laravel Worldwide Meetup. My name is Dan Sappelsa. I'm one of your co-hosts along with Margaret Tvaris. We are thrilled to once again bring you an awesome talk from a member of the Laravel community highlighting so much of the great stuff going on in the Laraveville community. Speaking of my co-host Margaret, how you doing today? I'm doing pretty good, Dan. How about yourself? I'm doing well, thank you. Uh we are heading into summer here in Canada. The weather's getting warm. Uh we're getting close to Laracon US. I'm
excited about that. A lot of awesome stuff going on and I'm also very excited about uh today's talk. But before we get to today's talk, we've got just a little bit of housekeeping to do here. So, let's have a look at some stuff we have going on. Cool. Thanks, Dan. For anyone new, welcome. Anyone returning, welcome. We wanted to go through a couple resources in the Laravel community that we'd like to bring to your attention so you could also benefit being part of the Laravel community. So, first up, we have Laravel News. If you haven't heard about it before, it's written by Eric Barnes.
So, thanks, Eric. They have a weekly email newsletter and you can sign up for that to receive weekly updates. Um, and they post all about news in Laravel community. And they also have a Laravel news podcast ran by Jake Bennett and Michael Jindepth and they discuss all the latest Laravel releases in the last week. They got a lot they've had a lot happening this last week. So make sure to check them out at Laravelenews.com. Next we have the Laravel podcast hosted by Matt Stoofer. So thanks Matt. For this season we've noticed that Matt's
been having a a community sorry a member from the Laravel team join on every podcast. So make sure to check them out at laravelpodcast.com. If you are looking to hire some Laravel developers or if you want to post a job for a Laravel job that you have open and really for all your Laravel job needs, you can check out Joob.com. Uh this month we wanted to highlight some of the other companies in the community that are also looking for Laravel developers. So if you'd like to take a look, we'll have some more um information in the description below about these job posts.
But on this next slide, if you mind switching over, Nan, we have a job scan, give butter, insomnia cookies, coconut software, area 17, and PS salon and spa that are looking for some very talented Lal developers. Again, you can take a look in the description below for more information about what they have, what they're looking for. Up next is Larcast. So, if you want to learn how to write some Laravel, big thank you to Jeffrey Way for running this awesome resource. So if you want to build your Laravel skills, make sure to
check them out and also learn from Laravel community at larcast.com if you want to learn some Laravel. Some upcoming events that we got going on, Laron US that Dan was talking about earlier will be happening at the end of July, so July 29th and 30th. Tickets are still available and that's going to be happening in Denver, Colorado. Um Dan and I will be there as well. So excited to meet people in person and um that's what we got going on for Laracon US. Up next we have Laravel Live Denmark which will be happening in August. So August
21st to the 22nd. So you can sign up and find more informations at laravelive.dk. We also have a meetup group for any PHP enthusiasts or Laravel enthusiasts as well. They have a global hybrid community and so if you want to check them out, you can check them out at meetup.com. Also big thanks to our host vehicle for their support in relaunching this meetup. They have a great team of developers. So if you have any Laravel problems, they'd be very happy to help you out and have a conversation. So,
make sure to hit them up at vehicle.com or at gove vehicle.com. We're also hosting a giveaway for this meetup. We're going to be closing it at next Tuesday because we have another exciting meet up that's happening. So, make sure to scan that QR code to be entered into winning any uh Jet Brains IDE. It's a one-year long uh subscription. So, we have those going out. So, if you want to join, just scan that QR code and you'll be signed up for our giveaway. We will show the QR code at the end of the stream as well.
Awesome. And I'll pass it off to Dan to introduce our awesome speaker booth for this week. Yes. And this brings us to our our talk uh this this month today. Um if you spend any time on the Laravel YouTube channel, uh you know uh you know all about Josh and his awesome videos he puts out kind of highlighting so much of cool kind of tooling uh both inside and uh and outside of the the Laravel codebase. And uh we're we're really uh the benefactors today of uh of timing uh
that uh hot off the release of Laravel Nightwatch last night. a uh the latest and the uh highly anticipated release from the Laravel team. Uh we're we're really benefiting from the timing of that that Josh is joining us today to kind of uh you know show us some of what Nightw Watch is all about, maybe how to get started. So let's go ahead and bring Josh in. Josh, how you doing today? Hello. Good morning, good afternoon, good evening, all of the above to everyone out there. Awesome. Yeah, we were saying we were so so fortunate of the way the timing kind of worked out
that uh yeah, Nightw Watch just kind of dropped last night for us here in North America and uh and you're here today to kind of show us all about it. So, uh we're Yeah, this might be the first stream highlighting it at least. So, that's what I'm excited I'm excited for that for sure. Awesome. Well, uh with with that, I know you've got uh got some stuff to show us. So, um yeah, you want to go ahead or I think you've already shared your screen, so let's add that to the stage. and I will step backstage and it's uh it's all yours, Josh. Excited to see
what you have to show us. Awesome. Yeah. Thanks so much for uh for having me and I'm excited to talk about Laravel Nightw Watch and how we might be able to decipher Laravel Nightwatch together. Awesome. We'll talk a little bit. Good luck. See you in a bit. Awesome. Good morning, good afternoon, good evening everyone out there uh in the comments. Um I already saw some good evening, good greetings from South Korea, everything like that. So that's awesome. I love it. Thank you so much for being here. I have a couple slides I want to share with you
first before we get into like actually running into Laravel Nightwatch. Just mostly to set the story like set the scene for you of what does it mean to monitor errors within Laravel nightwatch? What does what do errors even even mean within a Laravel application? Of course, most of us know that, but what does it actually look like? So, yeah, I'm here to talk about Laravel Nightwatch. And for those who don't know, deciphering Laraveville nightw watch is kind of like the title of this I don't know this this talk this
this meetup this morning. Um well my morning might be your afternoon your evening. But but getting into that laral nightw watch LA launched last night. Um well my last night right? It was it was my last night at 5:00 p.m. Uh but that was 5:00 p.m. PST. Uh what I don't know what that means for you specifically, but I put a list here of what 5:00 p.m. PSD might have meant for all of you. And
that's all of these things. So this is when Larville Nightw Watch launched last night or last 12 12 hours just over 12 hours ago. Um what is that? 15 hours. I'm never good with with math. But yeah, time is kind of like a truth, but it's also a relative. Like I already see the comments. Good evening from Kaggali. Um, hey everyone from Bobby. Uh, it's 11:00
a.m. from Marcos. Hello everyone from tongue. Nice to see you here in the chat. Uh, but really nightw watch is there to uncover truths about your application. And I guess really that that's incorrect too because if we're talking about the truth of time, Larville Nightw Watch launched last night for me, but it might have launched, you know, yesterday late
evening for you or early morning for you. But it's still this this I if I was to take that relative truth and say okay uh it's not about uncovering truth within Laraveville Nightw Watch because that's not necessarily true. It's about contextualizing truce. So what does it mean to contextualize truce within Laravel Nightwatch? What do I mean by that? I mean, every single time you go
to your application, usually if something bad happens, most of the time you either have to wait for a user to to uh say, "Hey, uh, this happened. I wasn't able to do this." And usually based off statistics, that's only going to happen um every I don't know, every I think it's like close to every 8% of the time a user is actually going to reach out. Of course, that depends on your specific user base. If you have developers as your users, as Laravel does, it's probably a little bit higher
because we like to tell everyone else when our errors are actually happening within someone else's application. But Laravel Nightwatch exists to contextualize truths about what is happening behind your application. Not just the errors, but also what something means and what you should do about it. Um just quick kind of like show of hands in the comments. You can press like uh
one uh type in one if you have had or interact with customers on the regular as a developer. If one in the chat if you interact with customers as a developer regularly. Um Laravel comment carbon carbon now sub hours 15. Exactly. That is when nightw watch launched. Uh I love it. Okay. So most Oh, I'm I'm really surprised with this.
Okay, ones. So people re uh interface a lot of ones in the chat. I love it. Interfacing with customers regularly as developers. That's something that's hard to do as someone who kind of didn't really stay in like the developer engineering space. I I kind of lived in the customerf facing world as a customer support engineer, as a solutions engineer, and now kind of like as a dev row um and support engineer. It's like
one of those things where interfacing with customers was my normal occurrence. But the fact of the matter is errors suck. Um really when it comes down to errors within our application, we know that something bad happened. But what do you do from there? And that's what I think and what I'm hoping to show you this morning or this afternoon, this evening, whatever time it is for you. Um, I already saw Tishimi from Kaggali said a
good evening from Kaggali. So, it's evening for you as well. Um, but errors suck. So, what do you do about them? Downtime sucks. What do you do about it? Being on call sucks. What do you do about it? Finding errors suck, especially if those errors are found by your customers. Uh, fixing things sucks. Waking up early sucks. Uh, maybe that's just maybe that's just me. It's 8 a.m. for me, but this is still kind of early for me. I usually like to wake up at around 8:00 a.m. Uh, but we'll we'll
strike that. We'll say waking up early to fix things sucks. How many people we'll do another like we'll do twos in the chat. How many people um in the chat have uh had to either wake up early or stay up late because you were either on call or something bad happened in your application and you're like, "Hey, I've got to fix this right now." Anyone Anyone out there? Um, I haven't had to do it for specifically for an
application, but I have had to do it for like uh for like videos and stuff I'm I'm making um as well. And I've done it for some of my own projects as well. I'm like, oh yeah, that is not true. And I've done it on vacation. Um, stay up late on call says Bartell. Um, yeah. So, so many. Uh, Joseph says to in the chat, "Yes, it's it's it sucks to be able to have to take time out of what you're already doing or maybe just like your
your normal workflow and fix things." So, what can we do about it? So, what I want to tell you a quick little story. Again, I I always uh I kind of interfaced as a c with customers regularly for my job before I was even doing any kind of like engineering type stuff. It was mostly like, "Hey, let me help you figure out what is wrong." And usually um this like ex there's always an XK CD comic for everything. Um it might this might give you enough time to
read it as I'm talking kind of in the background, but really there's sometimes when uh either a customer just is doing something absolutely horrific and you and you don't actually know what's going on and really it's just means that something is just horribly wrong and you'll never actually be able to fix their issues at all. That's that's a a small occurrence of usual errors and everything like that, but for the most
part when a customer tells you that, hey, I have something wrong with your application. I tried to do this and it's not working or usually they'll just say this isn't working because we all know that uh customers suck. Actually, no, sorry, strike that that is not true. We'll say customers communication sucks because it's true most of the time and especially unless like your customers are are very good at communication and
then those small customers who are especially you in the chat for Laravel developers you probably are the fantastic customers who know like hey this is what happened here's my stack trace here's my uh console log errors and this is exactly what happened here's how I think you should fix this and you're a fantastic customer and that's great but most of us probably interface with customers who their communication is not as good as it should be. Why?
Because they're only dealing with those specific set of truths. Just like we say that, okay, it was nightw watch launched last night for you. Nightw watch launched uh in the morning, but customers don't know the contextualized truths that you might have because your Laravel application is hosted with nightw watch. So what can we do about it?
So what? So it's not what the error is, it's why the error exists. Uh men, good night everyone. Uh have a good night. Um so yeah, it's not what the error is, it's why the error exists. And that's really the contextualization part of what Laravel Nightwatch seeks to uncover for you. Because it's not good enough just to have all of your errors go into one single place. You have to know why
the error exists in order to know what to do about it. But you have to know why the error exists in order to know why you should do something about it. In this case, should this be something that should be fixed? Because most of the time, um, especially as developers, uh, we'd like to know, okay, this is the reason why it's happening. This is how I should fix it. But usually we're not seeing the other side of things. Even for most of us who said that we interface with customers here in this
call. Um at the same time you probably it's easier to kind of disassociate that with what they said the error was and you're like okay they're saying this but really they mean that uh you know this query they're saying that this is taking a slow time but really what they mean is I I messed up this query and it was an M plus1 query and now I have to fix that. Yes, that's true. But why does the error exist and what can we do about it? So
let's take a look. Even if we were to take a look at these screens within Laravel Nightwatch, we automatically see from a glance everything that is happening here. I'll go through these quick so we can kind of jump into the actual um actual application. Especially if some of you have already gotten time to play around with it. Um let me know uh in the chat. Just say yes if you have gotten to play around or in or um install Laravel Nightw Watch agent into your application or just create an account within Larville Nightw Watch.
Say yes if you have. um as well. But yeah, so even just looking at this dashboard, this is what gives us those contextualized truths. Jackson says, "Been using all day." I love it. Awesome. I love it. Um because we see something weird happened right here and then it stopped. Okay. Well, we can say that there was some issue probably that was mounting and mounting and mounting within our server and then something stopped. And so we have all of these,
you know, pinpoints that we can point out even before we know exactly what happened because um we know why the error exists. We or we know that the error exists, but now we can gleam this information from it. We can say what do I do about it? So why don't we take a look and dive in even further? Okay, let's go. So the first thing I want to point out is for those okay, we have a couple yeses. one I've been using all day. Bartell says,
"Yes, Art and Staging environment next to prod." I love it. I love it. Um, I'll just kind of give an overview of how to get started. Um, and then if you have any questions while I'm going through it, feel free to feel free to ask them. Um, I I I can't promise I'll get to all of them, but I will try my best. Um, getting started. I already signed up and enter my email. The only thing you'll have to do after entering your email is get a a code from your email and put that in. I didn't do that on this stream
because I didn't want you to wait for me to find my code. Um, and I only have one screen, so I didn't want you to see my email either. But we have to create an organization. An organization um is attached to a specific plan. In this case, I have a free plan. Larville Nightwatch has a free plan. You get up to uh 200,000 events. And we'll talk about what an event is in a little bit. Um, but then the next plan starts at $20 a month. And the good thing is for um
each of these uh plans, you'll be able to also attach um let's see for for the good thing is you'll also be able to attach individual uh additional uh events that you might pay. Okay. So, let's say you did want the pro plan, but you said, "Okay, every now and then, or maybe just for uh I don't want to jump to the business plan, for example, but I do need an extra 200,000 events or something like that." That is available
as kind of these buckets of events in addition to the ones that are included in your plan. So, we just have to enter an organization name. I'm going to say that this is we'll say uh Laravel Worldwide. Um, but I'll say I'll say Josh's Larville Worldwide just so just so if someone else wanted to take that organization name. Actually, I don't think this has to be unique anyway. So, we're we're good. We'll go ahead and
create the organization. And then I'm going to say that this is a new application. So, this is where we can pick the specific storage region. And so, this is where does this information live? It it still lives in Nightw Watch. It lives in Laravel Nightwatch's infrastructure. But do you want it to live in the United States or in Europe? And there's there's going to be more regions coming at a later date. But currently, this is the ones that uh exist at launch right now. So, United States in Ohio or Europe Frankfurt. I'm
going to pick Ohio because I'm in the United States. But of course, you can pick Europe if your application lives there. And even if you like your application, for example, most of my applications probably live on West Coast just because that's where I'm at. I I do a lot of uh US West 2 stuff. Uh but a lot of times it's that that the latency between stuff like that is not going to be uh noticeable at all. I'm just going to say this application is uh getting
started. Perfect. I'm not going to put a URL, but it's as simple as um installing the nightw watch package. Um and I'm actually going to do that uh in my terminal right here. So we'll go ahead and put this out. I'm going to go ahead and go into my um let's go ahead and go into my
this one right here. And I'm going to say oops I'm going to say composer require Laravel nightwatch. And so it's as simple as installing the Laravel nightwatch. And this is the agent that pushes all this information into Naraveville nightw watch as well. And then we just need to add the token to our environment variables. And so what this is going to do is if I open up my code editor and we're going to go to
our environment variables section. I just need to add and this is all done locally for me right now. But you would do this in production or wherever that environment is. And Lar Nightwatch can be used locally if you want. There's nothing stopping you. I I've done it. I've used it locally. I would just say set up your environment so that you know that this is a local environment because it's great to have that uh testing uh testing resources to be able to say okay you know in my in my test maybe browser
test or even just like specific things is there a specific query that is going longer than I specifically wanted. I'm going to say that's my that's my token and then I just need to set my log channel to nightw watch. So, I'm going to go to my log channel. Oops. Log channel. And I want to set this to uh uh nightw watch. And so, you can either put the nightw watch in the stack as well. So, if you uh had another stack of debug logs or information where
those debugs logs are going, you can definitely attach nightw watch to the stack and keep your log channel as a stack. That's almost a preferred method in most cases as well. But um now that we have that, we can set up specific sampling. So this is a big one that I want to make sure um you know off the bat um because sampling allows you to
say how much of my events are being sent to Laravel Nightwatch. Because let's say you're on the free plan, you only get 200,000 events, but you blow those through really quick. But maybe for stuff that you just don't necessarily care about. Maybe you don't necessarily care about all of your cues because you I don't know you have enough you you you have enough retry methods. You don't
necessarily want to uh blow through your 200,000 events as on the free plan or even just your additional paid plans. You don't want to track that information. and you want to specifically track maybe just queries or maybe just exceptions or or maybe you just want a specific sampling of all of those. So sampling gives us the ability to say I only want to take 10% for example this is like that 0.1 would be
10%. We recommend starting at 10% for request sampling and adjusting as needed for your application but it's really up to you of how much sampling of all your data. In this case, only 10% of all events are going to be sent to Laraveville Nightw Watch. But the cool thing is there is so much additional um options as well for for in terms of like um exception sampling, in terms of event filtering. This is kind of like the thing that I wanted to point out as well. We can ignore specific things. So,
let's say you didn't want to include mail events because you send 200,000 emails and you are you're just going to worry about any errors with that maybe like in your email service provider. Well, we can just include in this env v variable the nightw watch ignore mail or maybe I don't know maybe you you're an a you're an AI application and you're sending a ton of requests to open a claude or whatever have you or open
router whatever have you. Well, maybe you want to ignore outgoing requests because that that's just something that you it happens so frequently that you don't necessarily want to track it. Again, it's good to track all of these things, but at the same time, if it's something that maybe isn't as important to you and solving those problems for your customers, um then maybe it's something that you can just sample. But if you absolutely want to ignore them,
we give you the options as well. Uh but for now I'm just going to go ahead and uh just include this sample rate in myv. And again this is just a local application. So nothing's really going to happen here. But I just want to show you how this agent actually works. And so this is a longunning agent. And in this case it can't be run in an ephemeral kind of state. So you can't
really run this in like a lambda um or maybe like a Heroku. I I I don't believe like a Heroku Dino you could run it in, but you have to you have to run it in a specific um longunning server. So that way because it's it's sending information to Larville Nightw Watch is is collecting that information and sending it based off of a specific time frame or a specific uh number or
specific uh sorry a specific um size of requests until it actually batches those and sends them to Laravel Nightw Watch. So even just in my testing if I was to grab this and go into my terminal and say okay let's just start the nightw watch agent and you can see the authentication was successful we have the connection successful we're complete we're good to go and it's as simple as that getting started and getting started is one thing yes um but but where do you
go from here because that's really what I want to talk to you about getting started is easy sending nightw watch your data is fairly easy. Um, but where do you go from there? And that's really what I want to talk about today. So, I'm going to pull up a little demo application that I have here. And this one has a ton of data. So, that way I don't have to uh I don't have to like fake the data or show you any real data because this is a demo demo application
um and I don't want to leak any customers data. But side note, um you do have the ability to set um and we'll get kind of get there in a little bit, but um one of the things I always like to show is because Laravel Nightwatch is exists and has that um it it it is specifically created for Laravel applications for everything that Laravel
application does, handles, sends and all the above. It also includes authentication. So, we know what specific customer or authenticated user was attached to that particular request. Well, um we can kind of go look down here. We'll skip ahead just for a little bit because we can see 15 users impacted by exceptions and I have it set for the
last 7 days. Well, what if you wanted to customize that even more because uh let's say you didn't necessarily want your users emails. In this case, this is all Laravel emails, so I'm fine with with leaking them. Um, I'm sorry to everyone if you get spammed by that, but they're not that hard to find. Uh, but for these particular users, we have the ability to spec specify what data we are
sending to Nightw Watch. So, you can all of your data kind of has those two customizations within Laravel Nightwatch. You can sample data and only send a specific subset of your all of your events to Laravel Nightwatch. But the second thing is customer information. You can specify what that customer information is. You can find that um on our docs as well. But Laravel Nightwatch dashboard at a glance. The first thing I want to show you is that you see everything
from all activity and you can see here up on the top right we have selected 7 days. We see duration of all things. Um but this this talk is entitled deciphering larville nightw watch. So what is what does this all mean? What can you do with it? But what should you learn from it too? The first thing I want to point out is P95. Um I'm curious for those in the
chat without asking Google or or Claude or anything like that. Uh do you know what P95 is? I did not before starting to demo their nightw watch. Um so I had to look it up. And so um P95 basically means all requests in the 95th percentile. A lot of uh like a data an analysts use this as a as a specific metric to
say this is instead of like the average of all requests, it is the average of all requests um in the 95th percentile. So that way you're you're kind of you're kind of neglecting the the very few outliers whether that's too high or too low. And so that's what P95 means. That's what P95 stands for. And so that's something to note because Larville Nightw Watch does use that
metric and that is something that I would uh probably default to is saying this is a good indicator that of what happens to the majority of my users. So we have all of our requests. we have the duration of a specific request and you can see here we have this very long time frame that happened. Of course, when I'm hovering over it, you can see on the actual request, you can see where those requests were. And we can kind of see at a glance how many of those might have
been because of the red, how many of those might have been 500 errors versus 400 errors. Um, and this is all again all in seven days. But what if we wanted to dive in further? because this specific thing really stands out to me for the first part. Lar Nightw Watch allows you to kind of click and drag on any one of these specific uh dashboard items and you can see then at a closer
look without having to say, okay, this looks like it was June 16th through uh or June 15th through June 16th. There's like four hours. I would have to like go in here and maybe do that and that's too hard. So, Nightw Watch makes it easy. We just drag and now we're automatically selecting that specific time frame because then this gives us if we're wanting to decipher what Laraveville nightw watch means for us in
our application. What are we doing? I have a question in the chat. I'm running into a problem. The agent fails to authenticate with repeated timeouts. Does anyone have the same problem? Interesting. Um, is that happening locally too? I would try it locally to see if that might be an issue. um if it's happening locally uh that might be some kind of maybe uh like con connection it's not being able to connect as well um and we might be able
to look into it if you if you reach out to support might be able to see any kind of logs as well um but yes locally okay I would say um maybe try to reach out to support and we can maybe see what might be happening with that with that request locally it might be uh because you don't have or because that external connection request to try to hit the nightw watch isn't isn't
isn't happening like maybe your your network is shutting that down. Um so if we take a look at this duration, this is where we see a P95. So again, we have this average. This is the average of all of our users. But for the 95th percentile, for the majority of our users, it took 5.1 seconds.
That's something that we really should look at. So, what actually happened within here? Again, this is saying the request as a whole. This is saying the duration of those requests, but where can we dive in specifically to take a look at that? And I really want to dive in. Um, let's go ahead and take a look. Okay, of course we can maybe start with our users because it's great uh from most of us who say that we interact with users regularly. We can say okay maybe I'll start with a user that reached out to me and I'll see what happened with
their particular request and then I can decipher it from there. But the better option might be to say okay this particular route exceeded that threshold in the selected period. So I'm just going to click into that route and here is where we see that P95 of 5.11 seconds again. uh we can go ahead and take a look at all P95s um and say or or greater than or equal to the P95.11 seconds. And this is where we can see
all of those flight requests and you can see HTTP errors. This is where we start to decipher what might have been happening in that time. But then we also decipher what can we do about it? Because if I'm taking a look at this just as a glance and you might be getting ahead of me already as developers is if this is happening for all these requests um maybe even if you don't know what's happening within this application let's say you don't know the
inner workings or the inner code you can decide okay an HTTP request returned a status code even without clicking into this I can say okay this might have been something that I requested outside of my application you would be right because if I was clicking into this uh now we have the full exception and then we have an outgoing request. Oh, this is good. So, if I could take a look down, we have the full timeline. And this is the part of Laral Nightw
watch that I absolutely love. And I think this is really the part that allows you to decipher so much stuff within your Laravel application because you get the full request most of the time. Um, especially if you're just like logging specific errors, you get this and that's that's mostly fine. I mean, especially if you were to like take a look at that and you you know exactly what's happening within your code, but you don't necessarily know why it happened, right? You know what happened, you know
the result of what happened, but you don't necessarily know why it happened. Um, Ken says, "That timeline's pretty sick." Yes, I I love it. Um it was I was so pumped with a click and drag thing and this timelines is the two things I got really pumped when they f when uh I was first shown this from the Laravel nightw watch team. Um, so if I was to drag this and say, okay, now I see the full request, the full 5.1
uh 1 second request, the request, the middleware, all that looks good. The query select to the users, um, that all looks good. The controller, that's where it's failing, but it's failing at this outgoing request before we hit this exception. So then I can click into that and see this outgoing request. Of course, we can get a link that's specific to this request in Larville Naywatch or we can also click in and say I want to see what
happened during these requests. So this is that that that inner working view of okay I'm deciphering what happened because I'm seeing what happened for a specific subset of requests but now I'm seeing what happened even in more detail specifically with the outgoing request that is happening to this flightwatch.io IO API. And this is what uh like I I'm excited for
specifically. We'll we'll dive into one of or each one of these just briefly for for a lot of these things. Um but this flight this uh outgoing request tab allows you to see and again you can see here that we're still in that selected time frame that we started with at the beginning where we're saying we we clicked and dragged and we saw for that you know what is this uh maybe like a a day and six hours. I don't know what
that SP is. Yeah, like maybe I don't know 12 hours. Um, but what happened one day ago within these 7 705 requests to flightwatch.io again these requests and this duration is now not only just this specific time frame that we initially set, but now it's specifically what we're seeing for all this external API
outgoing requests. So this is great because now we can decipher. What do we do about this? Okay, well this API is is having a hard time. So maybe um maybe we push this outgoing request to a to a job instead and maybe then we can have like these retries because maybe it's just it's just failing. It didn't exist. So we can see like uh let's take a look at the P95.
Um yeah, like all of them fail at about 5 seconds, which makes sense. So maybe like our application has a 5-second request external API like request limit that's happening within that specific instance of a request. Well, maybe then this is good. Say, okay, what I do with this? Maybe I push this to a background job and I let the user know that um you know the price for this flight is still like being uh being grabbed or maybe we push it to a background job and then use
Laravel reverb or something to show that in real time status to the customer because as you can see all of them failed at 5 seconds. So what can we do about this? Well, we can probably um say that yeah, this needs to have an additional instead of just having this be part of the controller itself because it's happening so frequently or at least so frequently within this time frame. If I was to clear this out and say the
seven days, okay, P95 across 7 days, 2.76 seconds, but we still have those bursts. So maybe it is something that we can push to an external background job with Laravel Reverb and it's not going to, you know, impact our users if it completes a lot faster um or completes uh if it completes faster um for most circumstances. But at the same time,
this might be a way that now we can say how can I make my application better because I have this data. Um and and you can see here that actually looks like the most of this we do have a specific um job. Yeah, we have an app jobs process flight that's going to this API. So we already have one, but those uh to put like these uh this patch request
looks like it comes from a job. But then when we go to um let's see maybe like the 500 errors that was uh looks like the ones that we had said that would failed those were coming from the controller. So it's good to know all of this information because it's directly linked to layer lightwatch or and directly linked to your layer of application. you have all this data and
of course you could dive into your code and see okay where when am I actually sending or requesting data um requesting data from this flightwatch.io/appi io/ API this outgoing request and what can I change to make this better or not fail as often. Yes, you could do that but you can also start from this uh this view of saying okay I have now um received this
information and now I want to be uh maybe more proactive. So instead of being reactive within our application, uh we can now be proactive and say, okay, most outgoing requests, they fail, maybe the user has to hit refresh and send it again. And maybe most users don't care. And maybe most users probably are not writing in saying, "Hey, this didn't work. And I tried to I didn't try to refresh and just didn't
work." Uh but there might be some users who just don't come back to your application. And so how can we be proactive when we decipher this information to make our application better? But I want to go into um the requests specifically. So again we can search for individual routes to say uh what routes are specifically giving errors. We can say okay let's say this destinations route it's just a simple
git route but for some reason like we have an enormally large spikes. What might be happening here? Um, and yeah, an undefined array key of zero. And this is one that you probably would get a, you know, you know, maybe like, of course, we get 500 error that the user would get a 500 error, but this wouldn't be something that you would probably like think through of like, okay, what actually happened here? And of course,
then we can say within this uh, exception, we get a cash hit and within that cash hit is where we have that exception. So something happened within the cache and within this particular controller to make this error exception of the undefined array key zero happen. Again we can be proactive with all of this but we can also be reactive within Laravel
nightwatch. And the biggest way we can be reactive is using particular issues. And so this is just a way to track hey is someone checking on these things within Laravel nightwatch. It's a it's a very um a very kind of lightweight uh ability to use issue trackers within Laravel Nightwatch to say okay one maybe I want to subscribe to a particular issue but then two um you know maybe let's take a look at issues that are
unassigned and now I can see that because and we can we can specifically set up how uh how any kind of like requests like maybe it makes an issue once it's hit a specific threshold old, but once an issue happens and maybe we can see that unassigned issue, this might be the good starting point. Again, it all depends on how you as an individual user, but also you as a team want to be proactive versus reactive or
maybe like a good subset of both is a healthy alternative to say what can I do within Larville Nightwatch? Well, now I have this particular issue. Um, no one's been assigned to it. I'm going to assign this to Taylor because that's the only time I can tell him to do anything is here in a demo. Um, but I'll uh I'll s I'll sign it to him and we'll be good to go. And in this case, Taylor would then be receive a notification saying that hey, this issue has been um assigned to you and I can also be subscribed to it
as well. But now we see these particular occurrences of when in production did the slash destinations route when did this happen like and what did it happen? So in this case, it exceeded the 1,500 millisecond threshold. And that is a a threshold that you can set up and that's why this issue was then created. Well, again, this would probably be a good um and maybe this would be a good priority of a low. You
know, it's something that exceeded the threshold that I wanted. So this would be a good reactive if I'm deciphering what Laraveville nightw watch is giving me. It's a good reactive thing to look at. This slash destinations route specifically in that request took 1.71 seconds. Doesn't look like it was the query because that only took 7.11 seconds. this okay yeah this query h we can see here that that that that took uh the majority
of time right because we see here that this uh request took 1.71 seconds but this query right here to select destinations and we get the full SQL query and where in the file where in the controller file it actually exists which gives us a great head start into fixing this we can see something is going on with this particular request to select the destinations name from the
destinations. We're joining the tickets and maybe this is a simple issue as maybe we don't have an index on our request. I don't necessarily know this codebase specifically, but this is us deciphering what Laravel Nightwatch is giving us to then make some changes of like, okay, maybe I do want to check this particular file controller uh this particular controller file and see what happened. But again this is
where we can also be proactive within uh deciphering this information to be better to be better or create better applications and have better communication with our users as well because now okay this request took a little bit longer but maybe I see right here that this happened from uh Jeremy Butler and maybe if I was to take a look
at this particular user And we'll kind of go down to let's see Jeremy Butler right here. And this person was having a whole bunch of issues actually. I also take a look at like 500 requests. This person was having a whole bunch of issues. So maybe this is a good re way to then reach out to them and say, "Hey, we fixed this issue." Imagine how much better of an application or just a company that you would be or just a whatever project, whatever kind of users
that you that you service. How would you be how could you be better at communicating knowing that you have the information that Nightw Watch gives you? Okay. Next, I want to take a look at queries itself because we already kind of took a look at some, but this is where most people kind of get excited, especially when you think about N plus1 queries. I'll take a look at the chat real quick. Uh, does Nightw Watch automatically flag things as issues or do we as the user need to identify
something as an issue? Yes. So, so you kind of have like both ways. Um, so within our settings here, we have specific thresholds. Oh, let's go ahead and I am going to jump into it's probably because I'm on a demo application. Uh, we have specific thresholds. So we can say um within like a route for example if I want to say
like let's have all routes and I want it to be like a 1500 millisecond threshold. When when I add that threshold it's going to automatically create um a new it's going to specify uh these triggers create automatic issues and notifications. So then you'll get a notification as well as a new issue is going to be created and you can do that for routes, jobs and these are only on the pro pro plan unfortunately. Um but
for routes you have issues automatically created for you for jobs, commands and schedule tasks and those can all be specified as to what that threshold actually is. But then if I was to go back into uh my demo application. Uh but then if I was to go into a specific thing, let's say um let's do this particular request here. I don't know if this one has an issue attached to it. It does. Um let me see if I can find one
that doesn't have an issue attached to it. Let's see. Okay. But there's a there there's the there's a ability to uh I believe to open up an issue within a specific
request if there is no um issue automatically attached to it. But usually threshold is probably going to be your better um option to be your better uh I guess the starting point because a lot of times um you're not going to be diving into a particular uh subset or most of the times any threshold or any issue that exceeds a specific threshold is probably going to become an issue anyways. Um yes, great question. Um
and yeah, like Dave said, exceptions are automatically turned into issues. So um any any exception is going to be automatically turned into issue but then you have the threshold of like a route that's longer that can be then turned into an issue as well. Uh so let's go ahead and go to commands. Um actually I was I was talking about queries. Uh so queries individually are one that I know a lot of people kind of get excited about because it's one of those things that it's very hard to say
okay how well is this specifically performing? Um, and this is where you can dig into kind of the weeds a little bit. And of course, you can see everything at a glance like we kind of looked at. This is the past seven days, but we still have the ability to anywhere we see one of these dra graphs to click and drag to see that information again in a very a little bit more narrow subset. Um, and so we have the ability to see, okay, where are all these specific things
happening? This is one I think we already took a look at that particular issue. But if I was to take a look at this one, we have select star from flights where date um and this is like the P95 is 400 milliseconds in that time frame. If I was take a look at 14 days, 486, that's not terrible, but it is one again that we can take a look at this and say, okay, this matters for your application because each one of these things, especially within queries, is
going to be specific to your individual application because maybe some of these queries, um, if I was to even take a look at the average and not the P95, maybe 1.49 49 seconds for the most part is fine for you and your application, but maybe you every millisecond counts and that isn't fine. Maybe uh maybe 465 milliseconds is fine for most applications, but maybe for your application it's not. And so this is
where you can take that information and apply it to your specific use case, to your specific uh environment because um and one of the things I love that Laravel Nightwatch gives you is you kind of get to this this total call here as well to say, okay, out of 597 calls, this whole request, this whole query took 14 minutes in the last 14 days, 14 minutes of your user's time was spent
within this particular query. And that that adds up. And so maybe that is something that you want to um start to get a start to get ahead on if that makes sense to start start to think of okay what actually is happening with this. And again this might be something that is the more proactive piece where you're like hey we might we might want to look at this but it's not something that's necessarily erroring out or that's giving our users any trouble but we can make our application better. And so we can decipher that information from Laraveville nightwash to say uh okay in
all of these requests and this looks like it's just one controller that's making this request. So yeah and this just one controller if I was to shave you know an average of 1.49 49 seconds. Even if I was to shave off, I don't know, 49 seconds from this request, imagine the time saved for your users for every single time they hit this request, even in the last, you know, 24 hours. It looks like 27 calls.
So, not terrible amount. But you can see here that we can start getting into these use cases where we're taking this information that Laravel Nightw Watch is giving us and we're making our application better because we have all these details because we know that uh yes I could make this better and easier for my for my users but we also know when something not not just when something bad happens but we also know
what we can do about it later. Hey Mas, nice to have you here as well. Notifications. So, notifications, and I I'll kind of group all of these up as well. So, notifications, mail, uh, cache, and even jobs and commands, like most of these are are going to feel very similar. Again, each one of these, and you can kind of think of I I was I told you that I was going to tell you what an event is. Each one of these things in this activity sidebar
would be classified as an event. So when you say as a free user or whenever whatever tier you have selected, you get a specific subset of events kind of bundled up in that free user gets 200,000 events. So that means anything that happens within your application that is a request, a job, a command, a schedule, task, an exception, query, notification, mail, cache, or any outgoing request would be considered an event. And the good thing again because
Nightw Watch is specifically geared to and tailored for a Laravel application. You know exactly what happened within your Laravel application and we know from a a Laravel company standpoint that is building Laravel nightwatch. We know what happened within your Laravel application and what you tried to do or what you wanted to do. And that's why that timeline can be so specific because we know exactly what middleware was hit, what queries were hit, what controllers
were hit. And so that is where you can kind of specify that okay maybe you don't maybe you don't have jobs and so you don't um in that case it's probably not going to matter too much because you're not going to be you're not going to be sending information that you don't have. Um, but maybe like your jobs aren't as mission critical or maybe like your mail isn't as mission critical and you don't necessarily want to see that information within your nightw watch application or
put your 200,000 or whatever bundle of events you don't necessarily want mail or cash or whatever to be a part of it and that's where you can decide up to you of like okay what specific information do I want to decipher from Larville nightw watch to make my application better and maybe something like that isn't it but I want to go over this just at a quick glance Again, mail I think is really awesome. It's kind of like one of the things where like you can see the the subject, the specific
mailer, as well as like how many people it was sent to and and how long it took. And so this is again great stuff to get at a glance, but really also great stuff to do within users. If I was to take a look at um like a particular uh user or even just within mail and say, okay, who did I send this flight tickets specific
request to? I have this process mail flight and this is the specific uh uh this is the app mail flight tickets and this is the specific like mailer that it was sent to. And so in a lot of ways like it allows you to then um you know make sure that one was this sent u but then two it also allows you to see like how long is this particular mail request
actually happening. Did it did it have that attachment associated with it as well. Um and so mail is one of them. Cash is another one that is like very similar I guess in in a bundle collection when it comes to mail cache uh notifications where the cache is going to give you the ability of what when did something when did the event happen within your cache um and what
percentage of failures did you did you have so again this is a very glance view of what is happening there and then notifications this is notifications that are happening within your application when when it comes to Laravel L specific notifications of you send um like a flight created and again you get all of this kind of bundled up to say okay maybe a user is writing in or maybe you are being proactive and you're just like hey I tried this myself and this took a
lot slower well then you have the ability to dive into a little bit more specifically or maybe this is in a local environment or a staging environment and you're working on a new notification well then you have the ability to take this information to look at it to see it at a glance but then also dive in specifically to say, okay, within the last 14 days, these notifications on average, they took yeah, around 1.5 seconds, not too bad. Like maybe um and
most of these all were mail notifications that we were sent. So, I'm fine with that. Like we we don't have necessarily anything to gleam from that information. And then any kind of scheduled task. So this is one that is you have uh you know you you see your schedule at a glance but then you know what is healthy again at a glance and what might be failing and so these are any kind of artisan command that you might be running at
specific schedule time as well as um any kind of jobs or tasks or anything like that. We can see here when it's going to be run next as well as um being able to click into it and see again this is everything is going to be whenever we click into it's automatically going to have the same time frame that we selected the previously. So it's always going to keep that same time frame. This
is going to be the last 14 days. We can see the times when it did fail. We can take a look at that specific information and see, okay, for example, this particular one, P95, it's only failed out of 14 days. It's only failed three times. It might not be something that I need to look at, but it was a similar integrity constraint violation. So maybe that is something that even if it happens regularly, it is something that I might want to take a
look at. And yeah, looks like it was a particular query that then threw the exception. So we were trying to insert into flights and we didn't have any values. So and it was because there was a duplicate entry one for key. We didn't have any values that we inserted. So that that particular query would be something within that task that we could
take a look at and more more so just know exactly what then we might have to uh you know maybe we see this query pop up this exception pop up within our our our email notifications from Larville nightw watch and we now know that okay maybe a user is going to be reaching out or this is something that I should fix or rerun in order to make sure that this happen
properly as well. And then last, I just want to take a look at the um I just want to take a look at the user specifically. We kind of already took a look at this just briefly um in the sense that everything we take a look at within Laravel Nightwatch, it's all associated within our Laravel application. We have uh we have everything about your request. We have everything about is
this a notification versus is this a scheduled event versus is this a mailer because it is a Laravel application. We know what happens when it is a Laravel application. And because you have authenticated users and if you're using Laravel's authentication piece, then we have the ability to say, okay, we want to tie these within individual users so that we know um yes, let's say Philillip
uh looks like has the most requests in the last 14 days. Again, we're taking a look at these 14 days and we can dive into this a little bit further. Here's when we have um so we had 15 authenticated users in the past 14 days and those 15 authenticated users did two 22.7,000 re uh requests. I'm going to dive into this particular subset right here and let's take a look at the uh exceptions.
So now we can see again because we've selected that subset, not only can we look at users, but we could go back to that dashboard and I can take a look at um how many users were impacted by exceptions in the selected period to take a look at the most ex most users that were affected and take a look there. But then we can we can take this information and say um now that I know
that um Jess had a whole bunch of issues in this particular time frame. Well maybe yes something was going on with my application. But maybe there is something that I could you know proactively reach out to Jess and say maybe there is something within um you know their network settings or something like that that allows me to better affect better understand what they are doing as a user or maybe they're trying
to do something that I wouldn't expect and so nightw watch gives you that glance view. Nightwatch gives you the ability to say um these are the things that's happened but you have to take that one step further to say okay this happened this particular destinations issue happened the undefined array key we already seen that previously but this happened specifically for Jess so can we
fix this and then let her know we probably we probably can so within everything that Larville Nightw watch gives you from that that glance view to be able to take a look at everything individually. The whole premise of it is not just to give you say, "Hey, oh, something's wrong with my application. It's to give you an idea of what might be wrong so that you can better take a look at that and decipher it and say, okay, this is maybe the reason why it's
wrong or this might be something that it looks wrong because again, we have those uh contextualized truths kind of that we talked about. But now we have the ability to say that you know 1.95 seconds for a query it's not that long but for my application it is. And so we have that contextualized truth within lightwatch to say this specific threshold this specific thing. We want
to make sure we then do with that information um with what we have to be able to make our applications better. Um Sabia I did manage to terminate the free trial within one hour. Yeah it is expensive for large apps. Okay. Um yeah, and that's one of the things that I was uh we we kind of mentioned at the beginning is you do have 200,000 requests within free free requests. So like the one thing that I would um kind of look at is specific um sampling to
say maybe it's 10% of samplings maybe you have to bring that um uh which is what we recommend but then maybe you also have to say okay out of maybe even 10% sampling is is too much and you want to ignore um uh maybe queries or outgoing requests. And that's some not stuff that you necessarily want to ignore, but maybe it will help you uh at least ignore the things that maybe you have a lot too much of that you can go
then dive into the the more problem things that might come up. So I would I would take a look at what you might um want to ignore first as well as the sampling to see if that that might work for you. But if we took a look, what do you do from this now? Because taking all these things from Nightw Watch, you have all this at your at your disposal now. So what do you do with it? Uh the big thing is you shouldn't be afraid of the dark. And and that that sounds like a
catchy slogan, but at the same time, what happens within your application um is is now contextualized within Laravel Nightwatch. You have this truth of yeah, Laravel Nightwatch for me shipped last night. for you, it shipped in the morning or midnight. For me, it shipped at 5:00 p.m., which is technically yesterday afternoon. But that contextualized truth then allows me to say, okay, I don't necessarily need to know why something happened. I just need
to know why it happened for this particular user or why it happened for this particular request, this particular controller. So, you need to know what happened in order to know what to do next. And that's where you take deciphering Laravel Nightwatch and you take it one step further in order to make great applications because that's really what it comes down to at the end of the day. Taking the information you gleam from Laravel Nightwatch to make your application faster because you now have N plus1 queries that are now shown
from you at a glance to make your application better for your users because now you can reach out to them because you know that this particular query, this particular exception was an error for them. And now you can say, "Hey, I saw that this issue happened for you." Imagine what your users would feel if you did that. So, make great applications with Larville Nightw Watch and you can sign up today um for free to get 200,000 requests. But yeah, thanks so much for uh for letting me let me chat with you. I'll try to look at some
of these uh uh questions as well. All right, thank you Josh. Uh informationpacked presentation, beautiful looking slides, beautiful looking application. So, thank you so much for joining and sharing with us. And I I got to give you kudos too, man. Like uh to be able to give the presentation and have one eye on the chat too, which is certainly not an expectation and be able to I I you know, I jot down questions as we go here and and some of them were in the chat as well. And you kind of noticed them and
were able to answer them on the fly as well. So that was a awesome presentation and uh yeah, really excited to to dive in and try out Nightw Watch myself. So thank you. Awesome. Love it. Um, yeah. I think, uh, one of the the questions, you know, coming into it that I had and I think you you answered a little bit and it kind of showed me with the dashboard there is like I could see myself hooking hooking up Nightw Watch, starting to run an application. Maybe I've had no profiling or, you know, kind of in-depth debugging capabilities before and and
I'm going to let it run for a while and then what's the next thing I should do, right? And I think at least that dashboard seems to like that's a pretty good spot where if I land on the dashboard, it's going to maybe highlight to me, hey, here's some maybe some areas where there might be some fires in your application and here's where you should maybe the first thing you should do in terms of uh maybe making some improvements. Is that fair to say? Yep, I would say so. Um so like I uh again like the bigger subset of ex like a time
frame that you can have to be like okay I haven't really looked at too much of specific monitoring within my application. Maybe the nightw watch is the first monitoring tool that you install other than you know checking the debug logs every now and then that just get written to larel.log or something like that. I would say the first thing yeah is taking a look as as much as you can. Maybe it's 7 days, maybe it's 14 days, but getting that all all of that information at once is probably best unless there are specific subset of
issues that you know always come up within your customers or within your application. But then this whole dashboard I think gives you a great starting point. Usually um I I like to think of like this whole application piece because you do have this activity and that gives you an idea of okay what might be happening within that time frame but this application piece is really I think what it boils down to. So, uh, it's kind of similar to a question that Ken wrote. So, if you were handed a L app that's run Nightw Watch for 3 months, what's the first thing you
check for stability and the first for speed/optim optimization? And I would probably check this application um kind of dashboard here right now because one it gives me the ability to say okay what were my trouble routes um within a particular time frame but two how important is that to my application right now maybe I'm working on a new
feature that these routes don't necessarily matter or maybe this is like the majority because for this application this demo demo application/flights/ ID is probably the majority of my application and because this many exceptions are reported in the last 14 days that have impacted 15 users um I'm a big person in seeing h not just okay the these happen but what's the what's the damage like what happened within
this and I think this is the first thing I I would take a look at is what what routes or what uh you know subset of my application is actually having these errors so that I can then kind of work backwards to say maybe um kind of like what we had taken a look at the at the very beginning is like maybe this slf ID maybe this should be my next you know feature in the sense of pushing this to
uh more of a websocket approach because I'm taking too long at pushing these external APIs. So seeing everything at a glance is great but then it's also I think seeing how many users it's impacted as well. Now, if you don't have authenticated user and this is more of like a um an unauthenticated application, then I think it would be great to look at like the number of requests in collaboration with what um like how long those requests were
taking on average as well. Yeah, that's great advice. Yeah. Yeah, that's awesome. I really sorry to echo a lot of the things that Dan was saying about your talk. I thought it was super awesome. Being able to see everything in one place just gives you the whole I don't know to understand the app better. I mean, you want to make better code, this is another layer that uh would really help with that. So, this is I think this is super awesome. And then your last line as well. Um, you got to know what happened to know what to do next. I feel like that's a core thing like how do you know what you don't
know? So, I think that was super awesome. Um, and then I wanted to touch a little bit on um I know we were talking before this meet up before right up before the meet up that you had a bunch of other content on the Laravel YouTube channel talking about the differences between telescope and pulse. And I know Devon asked something and Dave responded in the chat, but um I guess was there anything else that you wanted to add about I guess the difference between Nightw Watch and the other um tools that exist? Yeah. Yeah, definitely. Um so yeah, uh like like
Dave mentioned, Devon, there are uh actually two videos on the Laravel um YouTube channel. I don't I don't believe they're actually published yet officially because they're just unlisted, but if you go to um I'll have to double check on that uh if if they are specifically published yet or not. Um on there. I think they're on there. Okay. Well, they're published. We're good. I couldn't remember if uh if Chris had done that yet. Uh but yeah, so they're the the big difference to think of is they all serve different purposes.
I think um I think someone could technically use Larville Nightw Watch, Pulse, and Telescope in collaboration. I think Telescope, just from a brief answer to this, telescope is kind of like geared towards local optimization. And so maybe you don't want to run Nightw Watch locally because you don't want to eat up into your 200,000 events or anything like that. And so telescope is a great option. Laraveville nightw watch is basically telescope on steroids for production. And so I think that's kind of like the next step up for
production as well. And most of the time we don't recommend from a laral standpoint to run telescope on production just because you're gathering so much information. Um it could bog down your server in a lot of ways. For pulse uh pulse is kind of gives you that bird's eye view without giving you those individual details. So again, Pulse is great for that. Maybe um I I like the idea of Pulse like specifically for like dashboard overview where you're like, "Hey, we have this page on our website or maybe there's a TV in your office and
you're like, "Hey, everything's good with my application." Nightwatch is might still be great for that, but you wouldn't necessarily, you know, want to see all these like red graphs and lines. It's great to see, hey, all my users are going good and because Pulse can be customizable within that dashboard where currently Nightw Watch is not. nightw watch dashboards just exists how it exists and so I think um having that be a a good bird's eye view for pulse is a great option as well. Cool. Thanks Josh.
Yeah, for anyone watching make sure to check out those videos as they're now on the the Laravel channel. So cool. Thank you. Yeah, this is I mean obviously day day one for the release and I think I was saying to you too Josh that I I don't envy the job uh the uh the expectations that are on the Laravel team's shoulders anytime I release these days, right? because I think you know some other SAS apps that are popular now they were not popular at the start and you know the user base grew grew slowly whereas you know anytime I think Laravel
releases a new product now there's a bunch of uh us developers champing or chomping at the bit to uh to try it out and uh and probably try and break it in some ways right and I'm sure a lot of people uh are going to have their own opinions in terms of like uh features they'd like to see and then feature requests and things like that and I'm sure the Laravel team has a lot of plans for future features um there was one you know specific specific question here in the chat about any plans for replays, but I think I have a general question too. Just uh if I was wondering what uh
features might be added in the future, uh do you have any insight into when I might hear more about some of that stuff? Yeah, I know that there's still going to be a lot released um at Laracon US in terms of uh you know the future plans for Nightw Watch, but I I guarantee in in terms of like replays, stuff like that, um replays, JavaScript stuff, it's stuff that the Laravel Nightw Watch team um are definitely aware of. I can't I can't necessarily uh say one way or that not not because I'm hiding it because I genuinely don't know
but I I uh I I can't necessarily say when all that stuff is happening but stuff that there's so much that they are um not only working on aware of but also want to make Nightw Watch better. And that's one of the reasons why um I know some of my people might have seen that Taylor had uh tweeted uh last week that um Nightw Watch was going to be released this week instead of last week. mostly because the nightw watch team wanted to make sure those little things uh got
became better and so like that that's the whole goal of the nightw watch team is to make you know monitoring a layer of application from start to finish so much better and so yeah there I I I know that um there are so many things on the docket when it comes to um you know replays the front end all that kind of stuff but currently uh it's just the uh underlying anything server related events and requests for for Laravel yeah and I think there's Uh the one thing you said your one slide at the start there
that users suck no user communication sucks which I think is and without the users we would all be nothing in many senses right so exactly opportunity for all of us here to be you know to be those good communicating users right if we run into any issues with with the platform initially or we have you know ideas for features I'm sure uh the laral team would be happy to field suggestions if nothing else right so definitely definitely yeah and I I do the same thing as well like I so I don't work on the nightw watch team I just am a huge fan of nightw watch um and I can run the
codebase locally. Uh but yeah, I I do the same thing as you the users. Uh so like if you do have suggestions, feel free to like write them into support or if anything like comes up like we're happy to to field those. Uh but I do the same thing as well where it's like hey this would be really cool if this would this happened this way um instead of another way or something like that. And so it's it's it's been awesome to have the Nightw Watch team. Um, one, it's phenomenally designed and it's incredible, but then two, they're very
receptive to those kind of ideas as well. And and the fact of how much has changed just in the last week since I demoed it in London a week ago is is crazy. Yeah. Yeah. It's fast moving stuff going on. Another question. So, from Harris, who's gonna be a speaker next month. Um, he's asking, "Is there any way to see all unique exceptions coming in in order to avoid getting sampled and lose track of some of those exceptions?" Okay. Um, any way to see all unique
exceptions coming in or to avoid getting sampled and lose track? Okay. So like sampling 10% of things but you want to see all exceptions and sampling 10% of everything else I think is what the question is kind of saying. Um I don't believe that is doable currently but it is something that the L night watch team is is actively working on. Um and I wouldn't be surprised if it if it if it
happened sooner rather than later um in a lot of ways. So, currently sampling um and uh I'll um I'll defer to the docs just to make sure if if I'm saying this anything anything wrong right now, but I think currently sampling um um uh let me look at the docs right now just to be sure. You can uh you can combine exception sampling with other sampling types. So when you set both request sampling and exec exception
sampling. Okay, so that is true. So you can you can set exception sampling as well as um as well as the request sampling. So let's say you set request sampling to uh 10% and exception sampling to 50% or maybe even 100%, it will capture all the exceptions from the sampled request but then it will also capture uh 50 or 10% or 50% of exceptions from the non-sampled request
as well. So there is ways to then only capture sampling of specific requests, everything else like the mail, notifications, events, etc. Um while also capturing all exceptions. So I would um defer to the docs. Um and I'm not logged into the chat, so I unfortunately can't put it another impressive on the fly response there, Josh. Uh yeah, if you if you go to the docs and you click on sampling under
nightw watch agent, uh there's uh some exception sampling information that's incredibly helpful. Cool. Yeah, because I could I could to see at different times you may want to uh adjust those those ratios depending on what your application's doing, right? Um yeah, pick up sampling on uh on your jobs if you know that the the cues are having an issue at a given time or something like that, right? So awesome. There was an an uh a question from a little earlier in the chat I think when you were kind of showing a setup initially and just a kind of conceptual question. Uh Toshimi
asks, "Do you have to keep that artisan agent command running?" Yep. Yep. So this is a longstanding command. So this is basically what and and kind of this is a gross oversimplification of what happens behind the scenes, but basically what happens behind the scenes within this Nightw Watch agent is Nightw Watch uh bundles all of your requests together until a specific time frame. I believe it's 10 seconds or a specific limit. um in this case like a a megabyte limit. I forget what that number specifically is.
Once that has either been hit or the time frame of 10 seconds has been hit for your um and it might only be two seconds. I I I can't remember the ex specific uh specific numbers, but once those have been hit, then it sends and bundles all those requests and sends them to Laravel Nightwatch. So that agent command does need to be long running because what it is doing is kind of bundling all those together and then sending them to your Laravel nightwatch dashboard. So that needs to be in a
longunning Damon or like a server full environment. And that kind of connects to another question I had which I already saw in the documentation, but if I'm already a Forge user or I'm using uh cloud, uh those things are probably going to be pretty easy for me to set up, right? Yep. Laravel Forge and Laravel Cloud are um our um we have guides on them in our documentation but they are supported out of the box from day one. It's pretty easy just like within Laravel cloud you
create a background uh like a custom worker as a background process and you just run that PHP artisan nightw watch agent command. Technically the the cool thing within Laravel cloud and I believe the same thing within Laravel Forge is you wouldn't even have to do any of this install for your nightw watch process um locally. You could technically do it all within your web UI because you just have to um compose a require um you then have to set your environment variable and then you can run the PHP artisan uh
nightw watch agent command. Okay, cool. Josh, just also wanted to check in on time with you. Do you have time for like maybe one or two more questions? Yep, I'm good. Okay, cool. Cool. Um I know we have a security talk. It's coming up next week. Um, so in regards to security, um, is Nightw Watch able to monitor background jobs, cues, and scheduled tasks out of the Oh, sorry, not that's not a security question. Another security question. Well, maybe we'll answer that one first. Uh, is it able to monitor background jobs, cues, and scheduled tasks out of the box? Yep.
So, um, Nightw Watch is able to monitor any kind of like background job and that's that's one of the each one of those is kind of one of the events. So you have any background jobs, um schedule tasks, which you have the ability to see when did it last run, was it successful when it run, and then um any kind of what was the last one? Commands. Yeah, schedule tasks out of the box. Yep. So yep, all those are are are set out of the box. The only difference between like the free plan and the propr
uh if you want to set specific thresholds that aren't necessarily thrown exceptions. So um for for creating issues. So, let's say you did want to be notified if um you know a a a scheduled job takes longer than you want it to take. Uh that that would uh that would that threshold would then be have to be set like if you're on the program. Okay, cool. Thank you. And then sorry going back to the security one the list here on I was wondering about um what
security measures are in place for the real-time data being collected and transmitted by Nightw Watch. Yeah. So it's basically everything that is being sent like a um requested and sent from your nightw watch from your lab application. The only thing that you have to be aware of is the user information that you're that you're sending. So yes, anything that is being sent from your application um in terms of like uh you know like you're sending
this outgoing API a API request that whole entirety of the event is then sent to Laravel Nightwatch. Um, and so I like in security wise I don't think there's anything to be concerned about with that. The only thing I would me want to point out and be aware of is when it comes to like any kind of like HIPPA violation in terms of like what you maybe have set with your particular users of what you want to capture. By default, it captures name and email. Um,
but you can uh specify what actually gets sent to Nightw Watch for those users requests. And and you did show too that there's a couple of regions supported and I think you mentioned more to follow. So that might be also be part of the consideration as to where that data is being stored as well. Yep, exactly. That that probably Good good point, Dan. Thanks so much. Yeah, EU and US are currently the the two regions supported. Um but yes, that that that's something to think about as well as where's that information being stored?
Absolutely. All right. Anything uh else on your side there, Margaret? Questions? I think those are the ones that I got uh logged here. If there's any other ones that come through the chat or whatnot, I'm sure Josh, I can forward them off to you and then the Larl team will'll address them as well. But yeah, I think with the the current launch, there's a lot of questions being uh brought up. So yeah, I I've kind of seen all the ones here so far. So I'm good. Good. I I know there was some uh live debugging there with Mo a little earlier trying to set up his agent. And uh I see another
question sort of in the sort of the support uh kind of vein. So there there is support as well. I think that people should should reach out to if they have any questions or issues initially to to get going as well. Yeah. Awesome. Well, thank you once again, Josh, for joining us. Yeah, awesome presentation, lots of information there. I think everyone's really excited about Laravel Nightw Watch and uh and the the uh the features to follow in the in the coming months. So, thanks for uh thanks for sharing with us today. We'll talk to you soon. Thank you. Thanks for everyone in the chat for for joining. I appreciate it.
All right. Take care, Josh. All right. And with that, we've got uh just a couple of items here to close out the stream for today. Margaret, uh I'll hand it off to you. Cool. Thanks so much, Dan. And thanks so much again to Josh Siri for doing this presentation. for our next meetup. You can join us next week. So, we have two going on this month. So, you can join us on Tuesday, June 24th at 9:00 am EDT. We're going to have Stephen Ree Carter from Australia
joining us. So, thank you for the time adjustment. Um, so as well with uh what we got going on to give back, we have a giveaway as well. So, it's going to be open until next Tuesday. So, if you'd like to join and win any um Jet Brains IDE for an entire year subscription paid for, you can just scan that QR code and enter our draw and the winner will be announced by email on June 24th. Leave that up for a moment.
Cool. Some ways to stay connected with us. You can join us on X by following us at Laravel WW Meetup. We'll give out all of our um updates about the upcoming meetup. So, stay tuned and give us a follow if you'd like. And then we're also on Blue Sky. So if you'd like to follow us on Blue Sky, you can give us a follow at Laravel www meetupbs sky.social. And to stay uptodate uh with emails, you can join us on the official the official
Laravel worldwide meetup site at meetup.laravel.com and you can enter your email for um updates there. And of course, thanks for catching us on YouTube. You can check us out on the Laravel official YouTube channel at Laravelph. Make sure to subscribe to figure out to stay up to date with what's going on. Um, and we'd appreciate any uh any support. So, thank you so much. Head over there and check out all the great content being put out from uh from the Laravel team, including a bunch of videos by Joshu introducing us all to
Nightw Watch. And with that, I think that kind of uh ends things for uh for this week. So, once once again, thank you Josh for joining us and sharing all things Laral Nightwatch. We're all excited to uh to get going with the platform. Anything uh from you Margaret before we sign off for today? So, thanks for joining us and always happy to to run these meetups. Super awesome to be involved in the community and thanks for tuning in. Yeah. And excited to join you in just one week's time. So, we'll see you uh
next week on the next one. Have a great day everybody. Have a good one. [Music]