<?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: Amorizz</title>
    <description>The latest articles on DEV Community by Amorizz (@amorizz).</description>
    <link>https://dev.to/amorizz</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%2F4133898%2Fc3911844-2240-4f75-aca2-028632837215.png</url>
      <title>DEV Community: Amorizz</title>
      <link>https://dev.to/amorizz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amorizz"/>
    <language>en</language>
    <item>
      <title>Point the official Sentry SDK at self-hosted ingest (DSN only)</title>
      <dc:creator>Amorizz</dc:creator>
      <pubDate>Sun, 20 Sep 2026 10:00:44 +0000</pubDate>
      <link>https://dev.to/amorizz/point-the-official-sentry-sdk-at-self-hosted-ingest-dsn-only-3ij2</link>
      <guid>https://dev.to/amorizz/point-the-official-sentry-sdk-at-self-hosted-ingest-dsn-only-3ij2</guid>
      <description>&lt;p&gt;You don’t need a forked Sentry SDK. Keep &lt;code&gt;@sentry/browser&lt;/code&gt; or &lt;code&gt;@sentry/node&lt;/code&gt;, change only &lt;code&gt;dsn&lt;/code&gt;, then prove &lt;code&gt;/health&lt;/code&gt; → HTTP &lt;code&gt;202&lt;/code&gt; → Issues. Two containers (app + Postgres 16); leave replay, traces, and profiles at sample rate &lt;code&gt;0&lt;/code&gt; — those envelope items are out of scope.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you will do
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Clone and &lt;code&gt;docker compose up&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Confirm &lt;code&gt;GET /health&lt;/code&gt; → &lt;code&gt;{"status":"ok"}&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Install a pinned official SDK (&lt;code&gt;7.120.0&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Sentry.init&lt;/code&gt; with your DSN and zeroed unused sample rates&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;captureException&lt;/code&gt; and expect ingest &lt;code&gt;202&lt;/code&gt;, then an Issues row&lt;/li&gt;
&lt;li&gt;Optional: raw &lt;code&gt;store&lt;/code&gt; / &lt;code&gt;envelope&lt;/code&gt; curls if the SDK path is noisy&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Two containers, one health check
&lt;/h2&gt;

&lt;p&gt;Clone the public tree and start compose from the repo root:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/epure-sh/epure.git
&lt;span class="nb"&gt;cd &lt;/span&gt;epure
docker compose up
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two services: the app image and &lt;code&gt;postgres:16-alpine&lt;/code&gt;. No Redis. No separate worker fleet on this laptop path.&lt;/p&gt;

&lt;p&gt;If port &lt;code&gt;8080&lt;/code&gt; is taken:&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;cp&lt;/span&gt; .env.example .env
&lt;span class="c"&gt;# set EPURE_PORT and EPURE_PUBLIC_URL together, then recreate the app container&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Wait for health:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-sS&lt;/span&gt; http://localhost:8080/health
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Expected body:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"ok"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open &lt;code&gt;http://localhost:8080&lt;/code&gt;. Register in the UI, or for local smoke only (never production):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./scripts/seed-dev.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Copy the DSN (only thing that changes)
&lt;/h2&gt;

&lt;p&gt;From the dashboard: Settings → SDK connection (or the setup checklist). Create a key if none exists. Shape:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://{public_key}@localhost:8080/{project_id}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Migrating from Sentry SaaS? Keep the same &lt;code&gt;init&lt;/code&gt; options. Replace only &lt;code&gt;dsn&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Init once, throw once
&lt;/h2&gt;

&lt;p&gt;Pin the fixtures the public docs exercise:&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="c"&gt;# browser SPA&lt;/span&gt;
npm &lt;span class="nb"&gt;install&lt;/span&gt; @sentry/browser@7.120.0

&lt;span class="c"&gt;# or Node API / worker&lt;/span&gt;
npm &lt;span class="nb"&gt;install&lt;/span&gt; @sentry/node@7.120.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Browser example:&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="k"&gt;import&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nx"&gt;Sentry&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@sentry/browser&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nx"&gt;Sentry&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;init&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;dsn&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;http://YOUR_PUBLIC_KEY@localhost:8080/YOUR_PROJECT_ID&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;environment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;local&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;release&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;my-app@0.0.0&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;tracesSampleRate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;profilesSampleRate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;replaysSessionSampleRate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;replaysOnErrorSampleRate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="nx"&gt;Sentry&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;captureException&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;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Epure quickstart test&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Node is the same shape with &lt;code&gt;@sentry/node&lt;/code&gt;. Set unused sample rates to &lt;code&gt;0&lt;/code&gt;. Transactions, session replay, and profiles are discarded on an exception-only host — zeroing them stops the SDK from sending work you will never see in Issues.&lt;/p&gt;

&lt;h2&gt;
  
  
  Confirm 202, then Issues
&lt;/h2&gt;

&lt;p&gt;Ingest accepts before the Issues row appears. A successful SDK or store/envelope POST returns HTTP &lt;code&gt;202&lt;/code&gt; with a body like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"660e8400-e29b-41d4-a716-446655440001"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Refresh &lt;code&gt;http://localhost:8080&lt;/code&gt;. Match the environment filter chip to &lt;code&gt;Sentry.init&lt;/code&gt; (&lt;code&gt;local&lt;/code&gt; in the example). You want an unresolved issue for &lt;code&gt;Error&lt;/code&gt; / &lt;code&gt;Epure quickstart test&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Empty feed copy looks like &lt;code&gt;0 UNRESOLVED EXCEPTIONS&lt;/code&gt;. That alone is not proof of failure — see the checklist below.&lt;/p&gt;

&lt;h2&gt;
  
  
  Optional: curl without an SDK
&lt;/h2&gt;

&lt;p&gt;Useful when you need to separate “SDK wiring” from “host ingest.” Seed IDs below match &lt;code&gt;./scripts/seed-dev.sh&lt;/code&gt; in the public docs. Change host if &lt;code&gt;EPURE_PORT&lt;/code&gt; is not &lt;code&gt;8080&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Legacy store JSON:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-sS&lt;/span&gt; &lt;span class="nt"&gt;-D&lt;/span&gt; - &lt;span class="nt"&gt;-o&lt;/span&gt; /tmp/epure-ingest.json &lt;span class="nt"&gt;-X&lt;/span&gt; POST &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="s2"&gt;"http://localhost:8080/api/550e8400-e29b-41d4-a716-446655440000/store/"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"X-Sentry-Auth: Sentry sentry_version=7, sentry_key=a1b2c3d4e5f6g7h8i9j0, sentry_secret=supersecretdevkey"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
  "platform": "javascript",
  "exception": {
    "values": [{ "type": "Error", "value": "Epure try-it" }]
  }
}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Expect &lt;code&gt;HTTP/1.1 202 Accepted&lt;/code&gt; and an &lt;code&gt;id&lt;/code&gt; in the JSON body.&lt;/p&gt;

&lt;p&gt;Envelope path (same auth, binary body from the repo):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-sS&lt;/span&gt; &lt;span class="nt"&gt;-D&lt;/span&gt; - &lt;span class="nt"&gt;-o&lt;/span&gt; /tmp/epure-envelope.json &lt;span class="nt"&gt;-X&lt;/span&gt; POST &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="s2"&gt;"http://localhost:8080/api/550e8400-e29b-41d4-a716-446655440000/envelope/"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"X-Sentry-Auth: Sentry sentry_version=7, sentry_key=a1b2c3d4e5f6g7h8i9j0, sentry_secret=supersecretdevkey"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/x-sentry-envelope"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--data-binary&lt;/span&gt; @fixtures/sentry/browser/envelope.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Endpoints that matter:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Method&lt;/th&gt;
&lt;th&gt;Path&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;POST&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/api/{project_id}/store/&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;POST&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/api/{project_id}/envelope/&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;GET&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/health&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  When 202 is a lie
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;202&lt;/code&gt; means auth + schema accepted. It is non-blocking. It does not mean “row visible in Issues yet.”&lt;/p&gt;

&lt;p&gt;Checklist when the feed stays empty after a &lt;code&gt;202&lt;/code&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Wait, then refresh&lt;/strong&gt; — accept is ahead of the worker. One immediate refresh is not final. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Environment chip&lt;/strong&gt; — UI filter must match &lt;code&gt;environment&lt;/code&gt; in &lt;code&gt;Sentry.init&lt;/code&gt; (&lt;code&gt;local&lt;/code&gt; in the examples).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Project / DSN mismatch&lt;/strong&gt; — open the project that owns the key you put in &lt;code&gt;dsn&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wrong host or port&lt;/strong&gt; — &lt;code&gt;EPURE_PUBLIC_URL&lt;/code&gt; / &lt;code&gt;EPURE_PORT&lt;/code&gt; drift after a &lt;code&gt;.env&lt;/code&gt; change without recreating the app container.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SDK still talking to SaaS&lt;/strong&gt; — leftover &lt;code&gt;dsn&lt;/code&gt;, or a second &lt;code&gt;Sentry.init&lt;/code&gt; later in boot.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If store curl returns &lt;code&gt;202&lt;/code&gt; but the SDK path does not, debug the client. If both miss &lt;code&gt;202&lt;/code&gt;, debug the host (&lt;code&gt;docker compose logs&lt;/code&gt; on the app service, health, DSN key).&lt;/p&gt;

&lt;h2&gt;
  
  
  What this host is not
&lt;/h2&gt;

&lt;p&gt;Exception-only lane. Do not expect APM, session replay, profiling, log product, or mobile SDKs to “just work” because the DSN looks familiar. JS/TS source maps are a separate verify step (upload + prove demangled frames) — out of scope here.&lt;/p&gt;

&lt;p&gt;Do not write “100% Sentry compatible” in a PR description or a README badge. Honest subset: official SDK, DSN swap, exceptions, envelope/store.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Does Sentry JS 8.x work?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Often yes. CI fixtures are &lt;code&gt;7.120.0&lt;/code&gt;. On v8+, set &lt;code&gt;enableTracing: false&lt;/code&gt; when the option exists, and keep traces / profiles / replay sample rates at &lt;code&gt;0&lt;/code&gt;. Pin &lt;code&gt;7.120.0&lt;/code&gt; if you want the same line the docs exercise. Confirm with a real throw, not only a green install.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I use Python or curl only?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. Envelope and store accept official Sentry SDKs and raw JSON. Store is the smallest wire path. Phase 1 demangle stays JS/TS only, so frames stay as sent for other runtimes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need Redis?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
No. Two containers for this path: app + Postgres 16.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Laptop compose in production?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
No. Use the production overlay and a real &lt;code&gt;.env&lt;/code&gt; from &lt;code&gt;.env.production.example&lt;/code&gt;. Seed script and example DB passwords are local smoke only.&lt;/p&gt;

&lt;h2&gt;
  
  
  Canonical docs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Quickstart (this flow): &lt;a href="https://epure.sh/docs/get-started/quickstart" rel="noopener noreferrer"&gt;https://epure.sh/docs/get-started/quickstart&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Install / Postgres 16 / prod overlay: &lt;a href="https://epure.sh/docs/self-hosting/installation" rel="noopener noreferrer"&gt;https://epure.sh/docs/self-hosting/installation&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If those URLs 404 someday, the commands above still stand: health JSON, store/envelope &lt;code&gt;202&lt;/code&gt;, DSN host swap, sample rates at &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Discussion
&lt;/h2&gt;

&lt;p&gt;After ingest returns &lt;code&gt;202&lt;/code&gt; but Issues stays empty — do you check the environment chip, project/DSN match, or worker lag first?&lt;/p&gt;

</description>
      <category>sentry</category>
      <category>docker</category>
      <category>javascript</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
