Skip to content

docs(sdk): Add foundations/transport section#16404

Merged
stephanie-anderson merged 3 commits intomasterfrom
docs/add-sdk-foundations-transport
Feb 17, 2026
Merged

docs(sdk): Add foundations/transport section#16404
stephanie-anderson merged 3 commits intomasterfrom
docs/add-sdk-foundations-transport

Conversation

@stephanie-anderson
Copy link
Contributor

DESCRIBE YOUR PR

Create the foundations/ layer of the SDK docs restructure. This introduces the transport subsection with dedicated pages for each concern.

Moved (git history preserved):

  • data-model/envelopes.mdxfoundations/transport/envelopes.mdx
  • data-model/envelope-items.mdxfoundations/transport/envelope-items.mdx
  • expected-features/rate-limiting.mdxfoundations/transport/rate-limiting.mdx
  • overview.mdxfoundations/overview.mdx (stripped to just "Writing an SDK" + "Usage for End-users")

New pages (extracted from overview.mdx):

  • transport/authentication.mdx — DSN parsing, X-Sentry-Auth, HTTP headers, User-Agent
  • transport/compression.mdx — content-encoding, transfer encoding
  • transport/index.mdx — response handling, server errors
  • foundations/index.mdx — hub page

Redirects added for all moved pages in src/middleware.ts.

Stacks on #16403.

IS YOUR CHANGE URGENT?

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

Co-Authored-By: Claude noreply@anthropic.com

stephanie-anderson and others added 2 commits February 17, 2026 14:17
Move "SDK Errors" and "Layer of Integration" from sdk/overview.mdx
into working principles as "Never capture your own exceptions" and
"Integrate at the lowest level". Drop "Ten" from the index description
since the count is no longer fixed.

Co-Authored-By: Claude <noreply@anthropic.com>
Create the foundations/ layer of the SDK docs restructure:

- git mv envelopes, envelope-items from data-model/ to foundations/transport/
- git mv rate-limiting from expected-features/ to foundations/transport/
- git mv overview to foundations/, strip transport content already
  extracted into dedicated pages
- New pages: authentication (DSN, auth headers, HTTP headers),
  compression (content-encoding, transfer encoding),
  transport index (response handling, server errors)
- Add redirects for all moved pages in middleware.ts
- Demote processes/ sidebar_order to 99 (being superseded)

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment Feb 17, 2026 2:31pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Feb 17, 2026 2:31pm

Request Review

'https://sentry.example.com/api/1/store/'
```

<Alert title="Note" level="warning">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The alert says it's deprecated, below it says it will be deprecated. This is the type of content that f***s up agents. My suggestion is to either:

  • remove alert and mark explicitly as deprecated or optional or without function
  • or remove secret part completely, it it's entirely ignored anyways.

SDKs are encouraged to allow arbitrary options via the constructor, but must allow the first argument as a DSN string. This string contains the following bits:

```
'{PROTOCOL}://{PUBLIC_KEY}:{SECRET_KEY}@{HOST}{PATH}/{PROJECT_ID}'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we never document what PATH can be, add examples?

Within the `HOST` segment you will find the ingest domain for your organization. For self-hosted instances this will be the base host of your instance, and for sentry.io it will contain a host in the pattern of `o{orgid}.ingest.{region}.sentry.io`. For US based accounts `o{orgid}.ingest.sentry.io` will also work.

<Alert title="Note" level="warning">
All segments, including PROJECT_ID, are of type String.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
All segments, including PROJECT_ID, are of type String.
All DSN components, including PROJECT_ID, must be treated as strings. SDKs must not assume numeric types```

The resulting POST request for a plain JSON payload would then transmit to:

```
'https://sentry.example.com/api/1/store/'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad example ... store is legacy afaik, better use an envelope example

The resulting POST request for a plain JSON payload would then transmit to:

```
'https://sentry.example.com/api/1/store/'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'https://sentry.example.com/api/1/store/'
'https://o123.ingest.us.sentry.io/api/456/envelope/'

@stephanie-anderson stephanie-anderson merged commit ea8b877 into master Feb 17, 2026
17 checks passed
@stephanie-anderson stephanie-anderson deleted the docs/add-sdk-foundations-transport branch February 17, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants