See how the author implements the challenge solution for applying cross-application transaction tracing to the entire Node.js application.
(light music)…- [Instructor] Here's my solution to add…cross application transaction tracing…to the entire Rock.Paper.Scissors application.…This is an opportunity to compare…approaches and development styles.…All right here we go.…The first thing we're gonna do is…add express requestId and requestLogger…to servers, games, app.js.…So let's open it up, servers, games, app.js.…We've actually already done this work in players,…so let's go take a look.…
There's players app.js…and there's the require statements.…So let's paste those in.…And let's look back at the use statements and copy those.…There's the requestLogger and expressRequestId…and there's the use statements, perfect.…And actually if we compare the two files…they're exactly the same.…The next thing that we're going to do is log the port…when the server starts up.…
So we're gonna add the logger to servers games index…and servers players index.…Let's open those files.…We can close apps and open up the indexes.…We want both of them open so I'll double click.…Now we actually already did this to web.…
- Building a troubleshooting mindset
- Why measure performance?
- What's a microservice architecture?
- Managing microservices with PM2
- Effective logging strategies
- Debugging Node.js applications
- Benchmarking performance
- Profiling code execution
- Knowing what to optimize
Skill Level Intermediate
1. Build a Troubleshooting Mindset
2. Introducing Microservices
3. Effective Logging Strategies
4. Debugging Node.js Applications
Debugging isn't just logging3m 51s
5. Measuring Performance
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.