ObserveNow
...
Integrations
Real User Monitoring (RUM)

NodeJS Instrumentation

[DEPRECATED] This page has been deprecated in favor of Frontend Monitoring

Overview

In order to visualize and analyze your traces, you will need to export them to a tracing server. Follow the instructions below for setting up the backend and a exporter.

You may also want to use the BatchSpanProcessor to export spans in batches in order to more efficiently use resources and B3 Propagation headers which are used for trace context propagation across service boundaries.

Setup

Please install the following packages using npm install or yarn add:

Create a file tracing.js which will contain your tracing setup code.

JS


The above tracing setup and configuration should be run before your application code. One of the tools commonly used for this task is the -r,--require module flag.

Shell


You are now good to send traces to any OpenTelemetry Collector. This library was specifically crafted so that you may additionally get Real User Monitoring(RUM) metrics if by sending to the OpenTelemetry Collector you launched via OpsVerse.