<?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: YUVRAJ SINDHWANI</title>
    <description>The latest articles on DEV Community by YUVRAJ SINDHWANI (@yuvraj_sindhwani_65746df6).</description>
    <link>https://dev.to/yuvraj_sindhwani_65746df6</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%2F4035597%2Fcf58f93b-12ef-4064-8563-59aa996c4ca4.png</url>
      <title>DEV Community: YUVRAJ SINDHWANI</title>
      <link>https://dev.to/yuvraj_sindhwani_65746df6</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yuvraj_sindhwani_65746df6"/>
    <language>en</language>
    <item>
      <title>The Mystery of the Ghost Responses: How a Lazy Code Habit Almost Ruined My College Project</title>
      <dc:creator>YUVRAJ SINDHWANI</dc:creator>
      <pubDate>Sat, 18 Jul 2026 17:04:13 +0000</pubDate>
      <link>https://dev.to/yuvraj_sindhwani_65746df6/the-mystery-of-the-ghost-responses-how-a-lazy-code-habit-almost-ruined-my-college-project-3lha</link>
      <guid>https://dev.to/yuvraj_sindhwani_65746df6/the-mystery-of-the-ghost-responses-how-a-lazy-code-habit-almost-ruined-my-college-project-3lha</guid>
      <description>&lt;p&gt;Ever had your application look completely flawless in the terminal while the frontend is giving you absolutely nothing? I spent two full hours pulling my hair out trying to figure out why my AI agent was returning empty strings, even though my console was proudly spit-firing &lt;strong&gt;200 OK *&lt;em&gt;success statuses. In this post, I'll show you how a lazy coding shortcut completely blinded me to what was going wrong, and how setting up an *&lt;/em&gt;&lt;em&gt;OpenTelemetry service SigNoz&lt;/em&gt;&lt;/strong&gt; saved my project from an absolute disaster.&lt;/p&gt;

&lt;p&gt;I initially hooked up OpenTelemetry and SigNoz just to watch my API latency and see how fast my agent loops were running. I wanted to have some nice, professional-looking graphs. Everything worked fine during early development. But as I started adjusting the UI layout, I kept running into minor network timeouts that would crash my local server.&lt;/p&gt;

&lt;p&gt;Problem was in a small try-except code block&lt;br&gt;
except Exception: pass. It is a literal black hole for errors.&lt;/p&gt;

&lt;p&gt;A little later, I ran a heavy automated testing script to see how the backend handled complex prompts under simulated load.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;opentelemetry-distro opentelemetry-exporter-otlp
opentelemetry-bootstrap &lt;span class="nt"&gt;-a&lt;/span&gt; &lt;span class="nb"&gt;install

export &lt;/span&gt;&lt;span class="nv"&gt;OTEL_RESOURCE_ATTRIBUTES&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;service.name&lt;span class="o"&gt;=&lt;/span&gt;college-ai-backend
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;OTEL_EXPORTER_OTLP_ENDPOINT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"http://localhost:4317"&lt;/span&gt;

opentelemetry-instrument uvicorn main:app &lt;span class="nt"&gt;--reload&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I booted up my SigNoz dashboard and navigated straight to the Exceptions tab. Right there, staring back at me, was a massive, bright red spike of errors.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Learned / Takeaways
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;"I'll fix it later" is a trap:&lt;/strong&gt; Shorthand error handling like except Exception: pass is dangerous. If you must catch all exceptions temporarily to prevent crashes during design tweaks, at least print them to the console or log them properly.&lt;br&gt;
&lt;strong&gt;Telemetry sees through bad code:&lt;/strong&gt; The biggest benefit of using an open-source standard like OpenTelemetry is that auto-instrumentation captures the actual behavior of the underlying runtimes&lt;/p&gt;

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