<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: DIVESH YADAV</title>
    <description>The latest articles on DEV Community by DIVESH YADAV (@divesh_yadav_981d3bfe8adc).</description>
    <link>https://dev.to/divesh_yadav_981d3bfe8adc</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4036558%2Fc4024599-4464-4959-b198-e001fab4b38e.jpg</url>
      <title>DEV Community: DIVESH YADAV</title>
      <link>https://dev.to/divesh_yadav_981d3bfe8adc</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/divesh_yadav_981d3bfe8adc"/>
    <language>en</language>
    <item>
      <title>How I Hooked Up My First Node.js App to SigNoz Cloud in 5 Minutes (Without Docker)</title>
      <dc:creator>DIVESH YADAV</dc:creator>
      <pubDate>Sun, 19 Jul 2026 13:26:39 +0000</pubDate>
      <link>https://dev.to/divesh_yadav_981d3bfe8adc/how-i-hooked-up-my-first-nodejs-app-to-signoz-cloud-in-5-minutes-without-docker-14jd</link>
      <guid>https://dev.to/divesh_yadav_981d3bfe8adc/how-i-hooked-up-my-first-nodejs-app-to-signoz-cloud-in-5-minutes-without-docker-14jd</guid>
      <description>&lt;p&gt;I’ve been hearing a lot about OpenTelemetry lately, but honestly, every tutorial starts with the same exhausting step: &lt;em&gt;"First, install Docker Desktop (which is a massive 600MB+ download), clone this massive repo, and run a bash script."&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;As a Windows developer running on a mid-range machine, I didn't want to slow down my system just to try out an observability tool. So today, with the hackathon deadline staring at me, I decided to take a shortcut: &lt;strong&gt;SigNoz Cloud&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;If you are confused about how to instrument a basic application using OpenTelemetry without going through local self-hosting hell, this quick guide is for you. Here is exactly what I did, the errors I hit, and how it finally clicked.&lt;/p&gt;




&lt;h3&gt;
  
  
  The Goal
&lt;/h3&gt;

&lt;p&gt;We are going to take a dead-simple Node.js Express server, add OpenTelemetry packages, and stream the traces directly to SigNoz Cloud so we can see exactly where our application slows down.&lt;/p&gt;




&lt;h3&gt;
  
  
  Step 1: Getting the SigNoz Cloud Credentials
&lt;/h3&gt;

&lt;p&gt;Instead of downloading anything, I just went straight to their website and hit the &lt;strong&gt;Get Started - Free&lt;/strong&gt; button. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgr405476rrv2sqyxi8bd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgr405476rrv2sqyxi8bd.png" alt=" " width="799" height="397"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After a quick Google login, it gives you a clean cloud dashboard. The most important thing you need from here is your &lt;strong&gt;Ingestion Key&lt;/strong&gt; and your &lt;strong&gt;Otel Endpoint&lt;/strong&gt;. SigNoz explicitly tells you where to find these in your settings or onboarding screen. Keep them handy in a notepad; we will need them to point our code to the cloud.&lt;/p&gt;




&lt;h3&gt;
  
  
  Step 2: Setting up the Dummy Code
&lt;/h3&gt;

&lt;p&gt;I initialized a clean project in my terminal because I wanted to test how OpenTelemetry behaves with real delay loops.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mkdir &lt;/span&gt;signoz-cloud-test
&lt;span class="nb"&gt;cd &lt;/span&gt;signoz-cloud-test
npm init &lt;span class="nt"&gt;-y&lt;/span&gt;
npm &lt;span class="nb"&gt;install &lt;/span&gt;express
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, I created a standard &lt;code&gt;index.js&lt;/code&gt; file. To make the dashboard graphs actually look interesting, I added a regular route and a fake "slow" route that mimics a laggy database call using a standard &lt;code&gt;setTimeout&lt;/code&gt; promise:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;express&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;express&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;app&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;express&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;PORT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;3000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Cloud Monitoring is Active!&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="c1"&gt;// Simulating a heavy database query delay&lt;/span&gt;
&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/api/data&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;resolve&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1200&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt; 
  &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;success&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Here is your laggy data&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;listen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;PORT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`Test server running on port &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;PORT&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  Step 3: The OpenTelemetry Part (Where I Got Confused)
&lt;/h3&gt;

&lt;p&gt;This is where the official docs can get a bit overwhelming because there are a million packages. After checking the &lt;code&gt;opentelemetry.io&lt;/code&gt; specs, I realized you don't need to manually initialize tracers for basic Express apps if you use the auto-instrumentation package. &lt;/p&gt;

&lt;p&gt;Run this in your terminal to get the required SDK:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; @opentelemetry/api @opentelemetry/sdk-node @opentelemetry/auto-instrumentations-node @opentelemetry/exporter-trace-otlp-http
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, instead of messing up my clean &lt;code&gt;index.js&lt;/code&gt; logic, I created a separate file named &lt;code&gt;tracer.js&lt;/code&gt; right next to it. This file initializes the OpenTelemetry SDK before our application even loads:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;opentelemetry&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@opentelemetry/sdk-node&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;getNodeAutoInstrumentations&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@opentelemetry/auto-instrumentations-node&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;OTLPTraceExporter&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@opentelemetry/exporter-trace-otlp-http&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Connects directly to SigNoz Cloud endpoints&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;sdk&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nx"&gt;opentelemetry&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;NodeSDK&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;traceExporter&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;OTLPTraceExporter&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
  &lt;span class="na"&gt;instrumentations&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;getNodeAutoInstrumentations&lt;/span&gt;&lt;span class="p"&gt;()],&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="nx"&gt;sdk&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;start&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  Step 4: Running it with Cloud Environment Variables
&lt;/h3&gt;

&lt;p&gt;Here is the trick. OpenTelemetry looks for specific system variables to know &lt;em&gt;where&lt;/em&gt; to send the data. Since we are using SigNoz Cloud, we pass our credentials directly in the terminal command. &lt;/p&gt;

&lt;p&gt;Replace &lt;code&gt;YOUR_SIGNOZ_INGESTION_KEY&lt;/code&gt; with the actual token from your cloud dashboard:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="se"&gt;\$&lt;/span&gt;&lt;span class="nb"&gt;env&lt;/span&gt;:OTEL_EXPORTER_OTLP_HEADERS&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"signoz-access-token=YOUR_SIGNOZ_INGESTION_KEY"&lt;/span&gt;
&lt;span class="se"&gt;\$&lt;/span&gt;&lt;span class="nb"&gt;env&lt;/span&gt;:OTEL_EXPORTER_OTLP_ENDPOINT&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://ingest.us.signoz.io:443"&lt;/span&gt;
&lt;span class="se"&gt;\$&lt;/span&gt;&lt;span class="nb"&gt;env&lt;/span&gt;:OTEL_SERVICE_NAME&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"my-windows-node-app"&lt;/span&gt;
node &lt;span class="nt"&gt;--require&lt;/span&gt; ./tracer.js index.js
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;(Note: If you are on standard Linux/Mac, use &lt;code&gt;export&lt;/code&gt; instead of &lt;code&gt;$env:&lt;/code&gt;).&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Once the server started, I opened Chrome and hit &lt;code&gt;http://localhost:3000/api/data&lt;/code&gt; a few times to force that 1.2-second delay into the system.&lt;/p&gt;




&lt;h3&gt;
  
  
  Step 5: Checking the Traces
&lt;/h3&gt;

&lt;p&gt;I went back to my SigNoz Cloud tab, clicked on &lt;strong&gt;Services&lt;/strong&gt; on the left menu, and there it was—&lt;code&gt;my-windows-node-app&lt;/code&gt; was successfully sending live telemetry signals.&lt;/p&gt;

&lt;p&gt;When I jumped into the &lt;strong&gt;Traces&lt;/strong&gt; tab, I could clearly see the exact spike caused by my &lt;code&gt;/api/data&lt;/code&gt; route. It shows you a beautiful breakdown tree showing that the request spent the majority of its life cycle waiting inside that execution function. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F75yxj3l7w3gfa5g27nru.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F75yxj3l7w3gfa5g27nru.png" alt=" " width="799" height="333"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  What I Learned &amp;amp; Final Takeaway
&lt;/h3&gt;

&lt;p&gt;If you're just getting started with APM (Application Performance Monitoring) tools, don't waste time trying to configure complex local setups on night one. The open-source standard of OpenTelemetry means that whether you send data to a local Docker container or a managed cloud platform, &lt;strong&gt;the underlying code remains exactly the same&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;SigNoz makes this incredibly simple because their cloud ingestion endpoints just work right out of the box without requiring custom wrappers. &lt;/p&gt;

&lt;p&gt;If you are building an AI agent or a regular web app for this hackathon, use the Cloud route to save your development time for your core project features rather than debugging infra setups. &lt;/p&gt;

&lt;p&gt;Let me know in the comments if you face any endpoint connection issues while setting up your header tokens!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
