Skip to main content

NestJS Tracing | Open Telemetry & Honeycomb

14m 10s
English
Paid

In this lesson, you will learn how to configure tracing in a NestJS application to see exactly where time is spent during request execution and how to optimize the system's performance. Improving application efficiency has never been easier with the right tools at your disposal.

Introduction to OpenTelemetry and Honeycomb

Discover how to use OpenTelemetry and Honeycomb to monitor performance, analyze bottlenecks, and efficiently debug slow API requests. Understanding these tools is crucial for enhancing your application's responsiveness and reliability.

What is OpenTelemetry?

OpenTelemetry is a collection of tools, APIs, and SDKs used to instrument, generate, and export telemetry data such as traces, metrics, and logs to help you analyze your application’s performance.

Getting Started with Honeycomb

Honeycomb provides a powerful interface to visualize and understand how your application performs under different conditions. Learn how to set up Honeycomb to get real-time insights into your application's performance.

Setting Up Tracing in NestJS

Implementing tracing in a NestJS application involves several steps, including the installation of necessary packages and the configuration of modules required to capture and export traces.

Step 1: Install Dependencies

Begin by installing the required packages for OpenTelemetry and Honeycomb integration. This includes the OpenTelemetry core package and any specific plugins needed for your environment.

Step 2: Configure OpenTelemetry

Setting up OpenTelemetry requires configuring providers and instrumenting your code to capture the data points necessary for tracing.

Step 3: Integrate Honeycomb

Connect your application to Honeycomb by configuring an exporter that sends your trace data to Honeycomb’s API, allowing for comprehensive performance analysis.

Analyzing and Optimizing Performance

Once tracing is configured, use the insights gathered to identify bottlenecks and optimize your application's performance. This leads to faster response times and a more reliable system.

Identifying Bottlenecks

Utilize the traces to pinpoint sections of your application where time is disproportionately spent, and identify opportunities for optimization.

Implementing Improvements

With the data in hand, focus on implementing changes that reduce latency and improve throughput in your application.

About the Author: Michael Guay

Michael Guay thumbnail

Michael Guay is a professional full-stack engineer with over 10 years of experience in developing enterprise software. He works in the fintech sector, specializing in high-performance backend systems, microservices, and modern frontend. On his YouTube channel (24k+ subscribers) and on Udemy, he shares knowledge on topics such as NestJS, tRPC, Next.js, and full-stack development. On his website, he publishes practical case studies: architecture, performance, and system deployment.

Watch Online 1 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 1 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: NestJS Tracing - Open Telemetry & Honeycomb
All Course Lessons (1)
#Lesson TitleDurationAccess
1
NestJS Tracing - Open Telemetry & Honeycomb Demo
14:10
Unlock unlimited learning

Get instant access to all 0 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription