Skip to content

Node.js

Setting up OpenTelemetry to ingest data into the FusionReactor Cloud with Node.js is a straightforward process that can be completed in just a few minutes. This setup enhances your visibility into your application's performance and the metrics it generates, enabling rapid diagnosis and resolution of issues.

The following step-by-step guide shows how to configure OpenTelemetry to send data to the FusionReactor Cloud using Docker and a simple Node.js application. This guide is based on the OpenTelemetry Node.js GitHub project.

Step 1: Instrument OpenTelemetry in your Node.js application

Begin by integrating OpenTelemetry into your Node.js application. This process involves adding the necessary libraries and setting up the instrumentation to collect trace and metric data from your application.

Step 2: Set up an Exporter

Once your application is instrumented, you need to set up an exporter to send the collected telemetry data to the FusionReactor Cloud. The OTLP exporter is recommended for this purpose.

Step 3: Include the OpenTelemetry Agent in Docker Compose

If you are deploying your Node.js application using Docker, ensure you include the OpenTelemetry agent in your docker-compose.yml file. This agent will handle the collection and transmission of telemetry data from your application to the FusionReactor Cloud.

Step 4: Build the otel-config.yaml file

To finalize the setup, create the otel-config.yaml file. This file contains the configuration needed for the OpenTelemetry agent to function correctly, including details about the exporter and the telemetry data to collect.

By following these steps, you'll successfully set up OpenTelemetry for your Node.js application, enabling seamless data ingestion into the FusionReactor Cloud.