NodeJS Instrumentation
[DEPRECATED] This page has been deprecated in favor of Frontend Monitoring
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.
Please install the following packages using npm install or yarn add:
Create a file tracing.js which will contain your tracing setup code.
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.
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.