navigation

Observing Node.js Microservices with Logs


ServiceNow Cloud Observability + OpenTelemetry + Node.js

Welcome!

This workshop is the 3rd part in the Observing Node.js Microservices series. Each workshop builds off the previous ones. It is recommended that you complete the previous workshops but it is not a requirement.

Observing Node.js Microservices with Distributed Tracing (part 1)
Observing Node.js Microservices with Metrics (part 2)

In this workshop you will learn how to use OpenTelemetry to capture logs from your Node.js microservices and send them to ServiceNow Cloud Observability (formerly Lightstep). You will also learn how to query and view your logs in Cloud Observability and how to correlate logs with traces to gain better insights on the state of your applications.

Learning Objectives

  • How to automatically capture the logs from your containers and services
  • How to manually generate logs from your services with tracing context data using the Node.js OpenTelemetry API
  • How to use an OpenTelemetry Collector to receive, process and export log data to Cloud Observability
  • How to view and interact with your log data in Cloud Observability

Node.js Microservices Demo App

The microservices demo app used in this workshop is inspired by this project by Ashley Davis.

Let’s get started!