Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
6519f70
docs(react-native): Add Jest "Unexpected token 'export'" troubleshoot…
antonis Oct 27, 2026
c8f68d1
docs(nextjs): Document the tunnel route handler and tunnel credential…
s1gr1d Oct 27, 2026
6cfc86f
docs(react-native): Document opening the feedback form over a present…
antonis Oct 27, 2026
40d925c
chore(ai-sdks): Remove truncation remnants (#20248)
alexander-alderman-webb Oct 27, 2026
9362949
chore(ai-sdks): Remove requirement level from attributes (#20249)
alexander-alderman-webb Oct 27, 2026
b990a5b
chore(ai-sdks): Place footnotes at the bottom (#20258)
alexander-alderman-webb Oct 27, 2026
f72a9c7
ref(codeowners): Point mobile docs reviewers at the new SDK teams (#2…
sentry-junior[bot] Oct 27, 2026
2766eab
docs(cloudflare): Document the vinext Worker entry wrapping of the Vi…
sentry-junior[bot] Oct 27, 2026
13590b6
Bump API schema to 5c02c32a (#20260)
sentry-api-schema-updater[bot] Oct 27, 2026
13b379c
Bump API schema to 1e28b570 (#20261)
sentry-api-schema-updater[bot] Oct 27, 2026
7781719
Bump API schema to d12e7e78 (#20262)
sentry-api-schema-updater[bot] Oct 27, 2026
db4d888
Bump API schema to c2484fe9 (#20263)
sentry-api-schema-updater[bot] Oct 27, 2026
dfe85c3
Bump API schema to 5bd01cda (#20266)
sentry-api-schema-updater[bot] Oct 27, 2026
4362416
Bump API schema to 96ef41e3 (#20267)
sentry-api-schema-updater[bot] Oct 27, 2026
24488e5
feat(dropped data): Dropped data is only filtered by project and time…
sfanahata Oct 27, 2026
f62d4d4
build(node): Bump Node to 22 (#20256)
sentry-junior[bot] Oct 27, 2026
1e9fae8
Bump API schema to fe8bd6fa (#20268)
sentry-api-schema-updater[bot] Oct 27, 2026
d4ac827
Bump API schema to b26eb866 (#20269)
sentry-api-schema-updater[bot] Oct 27, 2026
6118399
Bump API schema to 541e7d20 (#20270)
sentry-api-schema-updater[bot] Oct 27, 2026
e3348d3
Bump API schema to 12440699 (#20271)
sentry-api-schema-updater[bot] Oct 27, 2026
12b8365
Bump API schema to 978abb76 (#20272)
sentry-api-schema-updater[bot] Oct 27, 2026
bbebaaf
Bump API schema to 2fc9a138 (#20273)
sentry-api-schema-updater[bot] Oct 27, 2026
00887fa
fix(docs): Make quick start feature descriptions platform-neutral (#2…
sfanahata Oct 27, 2026
b7a3f54
feat(docs): Apply new quick start template to React Native quick star…
sentry-junior[bot] Oct 27, 2026
072fc8c
docs(elixir): Correct the default HTTP client (#20246)
sentry-junior[bot] Oct 27, 2026
c14d654
feat(docs): Apply new quick start template to Unreal Engine quick sta…
sentry-junior[bot] Oct 27, 2026
beb9906
Bump API schema to 9f048abe (#20276)
sentry-api-schema-updater[bot] Oct 27, 2026
2ef8482
Bump API schema to 42958f35 (#20277)
sentry-api-schema-updater[bot] Oct 27, 2026
9c36006
Bump API schema to 00fa7483 (#20279)
sentry-api-schema-updater[bot] Oct 27, 2026
c17799b
Bump API schema to 097c4399 (#20280)
sentry-api-schema-updater[bot] Oct 27, 2026
79dc9fc
Bump API schema to 2af850c3 (#20281)
sentry-api-schema-updater[bot] Oct 28, 2026
6adceb4
Bump API schema to c22a3401 (#20282)
sentry-api-schema-updater[bot] Oct 28, 2026
10c6967
docs(native): HTTP retry and offline caching (#20259)
jpnurmi Oct 28, 2026
1ff4cc5
chore(ai-sdks): Remove table rows with deprecated attributes (#20283)
alexander-alderman-webb Oct 28, 2026
eb211c5
chore(ai-sdks): Remove unused `gen_ai.tool.type` and unused `gen_ai.t…
alexander-alderman-webb Oct 28, 2026
9dbe5a7
docs(rust): Use new sentry-tracing layers (#20290)
sentry-junior[bot] Oct 28, 2026
df10c21
chore(ai-sdks): Document agent span input and output as fallback (#20…
alexander-alderman-webb Oct 28, 2026
d564a9d
getsentry/relay@1861e29675c7008f8ccee53738fce6e95c850a5b
untitaker Oct 28, 2026
c8c14ca
chore(ai-sdks): Document `gen_ai.function_id` as an agent name fallba…
alexander-alderman-webb Oct 28, 2026
be920e5
docs(js): Use `@sentry/bundler-plugins` instead of individual package…
timfish Oct 28, 2026
54d30eb
Bump API schema to c97b5635 (#20293)
sentry-api-schema-updater[bot] Oct 28, 2026
e067681
Bump API schema to bd6c8410 (#20294)
sentry-api-schema-updater[bot] Oct 28, 2026
5274594
Bump API schema to 27c9db10 (#20295)
sentry-api-schema-updater[bot] Oct 28, 2026
58396c9
Bump API schema to 7c7b6c1e (#20296)
sentry-api-schema-updater[bot] Oct 28, 2026
f2901f3
Bump API schema to 64186e7d (#20298)
sentry-api-schema-updater[bot] Oct 28, 2026
ad36acb
Bump API schema to 3aba9d56 (#20299)
sentry-api-schema-updater[bot] Oct 28, 2026
2cf9332
Bump API schema to 706e9c62 (#20300)
sentry-api-schema-updater[bot] Oct 28, 2026
4175344
Bump API schema to 51d997b9 (#20301)
sentry-api-schema-updater[bot] Oct 28, 2026
7e9125b
Bump API schema to 595f666b (#20302)
sentry-api-schema-updater[bot] Oct 28, 2026
aa90db0
Bump API schema to 1891c6e5 (#20304)
sentry-api-schema-updater[bot] Oct 28, 2026
ef4c535
Bump API schema to c660f5a9 (#20305)
sentry-api-schema-updater[bot] Oct 28, 2026
e0a3fbd
Bump API schema to 99563f64 (#20306)
sentry-api-schema-updater[bot] Oct 28, 2026
afef694
Updates to improve lighthouse accessibility score (#20275)
coolguyzone Oct 28, 2026
acf05fa
feat(docs): Apply new quick start template to Python quick start guid…
sentry-junior[bot] Oct 28, 2026
491d8c2
Bump API schema to 0e210e04 (#20307)
sentry-api-schema-updater[bot] Oct 28, 2026
516099f
Bump API schema to 2d713eaf (#20308)
sentry-api-schema-updater[bot] Oct 28, 2026
8bfa88b
Bump API schema to faaa6aa8 (#20309)
sentry-api-schema-updater[bot] Oct 29, 2026
04c1329
Bump API schema to 93d0d1dd (#20310)
sentry-api-schema-updater[bot] Oct 29, 2026
70e7eb7
docs(android): Correct replay callback fallback (#19965)
adinauer Oct 29, 2026
ee268f0
docs(dotnet): Add 6.x to 7.x migration guide for 7.0.0-rc.2 (#20143)
ric-oliv Oct 29, 2026
ac1163b
docs(native): clean up deprecated APIs and use native in snippets (#2…
jpnurmi Oct 29, 2026
70ac965
Bump API schema to e3ed714f (#20314)
sentry-api-schema-updater[bot] Oct 29, 2026
77eb5be
Bump API schema to 5d1c8cb0 (#20315)
sentry-api-schema-updater[bot] Oct 29, 2026
535597d
Bump API schema to 72986c13 (#20316)
sentry-api-schema-updater[bot] Oct 29, 2026
7ff3e44
Bump API schema to c9ceac42 (#20317)
sentry-api-schema-updater[bot] Oct 29, 2026
30e8256
docs(releases): Add Unreal Engine to release health supported SDKs (#…
tustanivsky Oct 29, 2026
33dcb8e
Bump API schema to 20b46329 (#20323)
sentry-api-schema-updater[bot] Oct 29, 2026
721e58a
Bump API schema to 20ca9a70 (#20324)
sentry-api-schema-updater[bot] Oct 29, 2026
bc48e9b
docs(android): Explain when ProfilingManager rejects profiling reques…
sentry-junior[bot] Oct 29, 2026
dac0072
Bump API schema to b26b2fcc (#20328)
sentry-api-schema-updater[bot] Oct 29, 2026
e208f12
Bump API schema to ed573d45 (#20329)
sentry-api-schema-updater[bot] Oct 29, 2026
09ce3a5
docs(integration-platform): Fix signature verification and verify-ins…
sentry-junior[bot] Oct 29, 2026
eea0959
docs(consoles): add to release health (#20322)
JoshuaMoelans Oct 29, 2026
fe999d8
docs(native): fix snippets and stale statements (#20327)
jpnurmi Oct 29, 2026
b4a5109
Bump API schema to 37723c61 (#20333)
sentry-api-schema-updater[bot] Oct 29, 2026
94d5103
Bump API schema to 9785f730 (#20335)
sentry-api-schema-updater[bot] Oct 29, 2026
a3adea3
docs(js): Document dataCollection.mcp option (#20346)
sentry-junior[bot] Oct 30, 2026
e844071
Bump API schema to 2722fa56 (#20351)
sentry-api-schema-updater[bot] Oct 30, 2026
3d8d539
docs(unity): Mention Linux ARM64 and the Linux backends (#20342)
bitsandfoxes Oct 30, 2026
3b7bf0d
docs(unity): Describe how screenshots get captured (#20340)
bitsandfoxes Oct 30, 2026
5afe93b
docs(unity): Add Unity as a Library page (#20341)
bitsandfoxes Oct 30, 2026
d5a032a
docs(unity, native, unreal): Fix app hang docs (#20339)
bitsandfoxes Oct 30, 2026
22f201a
docs(develop): Update blog and skills items in Linear project templat…
sentry-junior[bot] Oct 30, 2026
8df90df
ci(evals): Post each label's products matrix to Slack (#20274)
jaydgoss Oct 30, 2026
fa304db
Bump API schema to 66a476a7 (#20357)
sentry-api-schema-updater[bot] Oct 30, 2026
a441deb
Bump API schema to 0af189dc (#20358)
sentry-api-schema-updater[bot] Oct 30, 2026
20f19cb
Bump API schema to 5aa2eeb6 (#20359)
sentry-api-schema-updater[bot] Oct 30, 2026
ff6a00b
Bump API schema to 127edc93 (#20360)
sentry-api-schema-updater[bot] Oct 30, 2026
a5eac4a
docs(js): Link wrapMcpServerWithSentry and document mcp defaults for …
sentry-junior[bot] Oct 30, 2026
c9f1c3f
Bump API schema to 91736c49 (#20361)
sentry-api-schema-updater[bot] Oct 30, 2026
ea7a1f4
Bump API schema to 9da45288 (#20362)
sentry-api-schema-updater[bot] Oct 30, 2026
cb75582
Bump API schema to 761f1e25 (#20363)
sentry-api-schema-updater[bot] Oct 30, 2026
37c203c
Bump API schema to 28f2d86a (#20364)
sentry-api-schema-updater[bot] Oct 30, 2026
16f9a4d
contributing: update contributing page on how to write quick start gu…
inventarSarah Nov 2, 2026
44dceb8
Bump API schema to 465bfa03 (#20373)
sentry-api-schema-updater[bot] Nov 2, 2026
9fcf861
Bump API schema to 93351691 (#20374)
sentry-api-schema-updater[bot] Nov 2, 2026
92471e3
Bump API schema to 0274919a (#20379)
sentry-api-schema-updater[bot] Nov 2, 2026
98365bd
Bump API schema to b4739189 (#20380)
sentry-api-schema-updater[bot] Nov 2, 2026
80c5b8e
Bump API schema to 82c17fef (#20381)
sentry-api-schema-updater[bot] Nov 2, 2026
6c9609b
Bump API schema to d5fa3552 (#20382)
sentry-api-schema-updater[bot] Nov 2, 2026
428c064
Bump API schema to fee6e6f5 (#20383)
sentry-api-schema-updater[bot] Nov 2, 2026
80d6487
Bump API schema to 86c291bd (#20384)
sentry-api-schema-updater[bot] Nov 2, 2026
6e56c0b
Bump API schema to 6bee2742 (#20385)
sentry-api-schema-updater[bot] Nov 2, 2026
32de754
Bump API schema to 9ac6ef1b (#20386)
sentry-api-schema-updater[bot] Nov 2, 2026
31240d8
Bump API schema to 9cea1106 (#20387)
sentry-api-schema-updater[bot] Nov 2, 2026
0787a43
perf: Load the Kapa.ai widget on demand (#20278)
coolguyzone Nov 2, 2026
27f92fe
docs(dotnet): Update the 7.x migration guide for 7.0.0-rc.3 (#20349)
ric-oliv Nov 3, 2026
4de2195
docs(dotnet): Correct ShutdownTimeout and InitCacheFlushTimeout types…
sentry-junior[bot] Nov 3, 2026
ee67678
docs(android): Lifecycle support for Android Nav3 integration (JAVA-7…
0xadam-brown Nov 3, 2026
075af5d
chore(ai-sdks): Remove OTel mention (#20326)
alexander-alderman-webb Nov 3, 2026
da5ae92
Bump API schema to fce6b923 (#20396)
sentry-api-schema-updater[bot] Nov 3, 2026
390e26d
Bump API schema to f8ee5f48 (#20397)
sentry-api-schema-updater[bot] Nov 3, 2026
76d07f9
docs(php): Correct max_request_body_size small and medium cutoffs (#2…
sentry-junior[bot] Nov 3, 2026
2a1573e
Bump API schema to b783f73d (#20398)
sentry-api-schema-updater[bot] Nov 3, 2026
1e5d781
Bump API schema to 83e689cf (#20400)
sentry-api-schema-updater[bot] Nov 3, 2026
c535639
Bump API schema to ef784628 (#20401)
sentry-api-schema-updater[bot] Nov 3, 2026
28248a2
docs(rust): Clarify tracing layer recommendations (#20345)
sentry-junior[bot] Nov 3, 2026
6c153cb
docs(agents): Update data privacy page for data collection options (#…
cleptric Nov 3, 2026
20582ed
Bump API schema to d4c11a55 (#20419)
sentry-api-schema-updater[bot] Nov 3, 2026
743cb58
Bump API schema to 021c19ef (#20420)
sentry-api-schema-updater[bot] Nov 3, 2026
97944ea
chore(ai-sdks): Link requirements to product features (#20353)
alexander-alderman-webb Nov 3, 2026
79114d7
fix: Correct the sign-in redirect and define docs site constants once…
sentry-junior[bot] Nov 3, 2026
68001c5
Bump API schema to b4a0e7b3 (#20422)
sentry-api-schema-updater[bot] Nov 3, 2026
83bc995
Bump API schema to ede65284 (#20423)
sentry-api-schema-updater[bot] Nov 3, 2026
f74c437
Bump API schema to a66bc538 (#20424)
sentry-api-schema-updater[bot] Nov 3, 2026
95500ff
Bump API schema to 654188d7 (#20425)
sentry-api-schema-updater[bot] Nov 3, 2026
426e382
docs(python): Point to attributes for searchable data in stream mode …
sentry-junior[bot] Nov 3, 2026
1859a62
Bump API schema to b8cee4a2 (#20428)
sentry-api-schema-updater[bot] Nov 3, 2026
3d063fc
Bump API schema to 93baefa5 (#20429)
sentry-api-schema-updater[bot] Nov 3, 2026
796ad52
chore(banner): Remove expired event banners (#20390)
sentry-junior[bot] Nov 3, 2026
b5b1d2b
Bump API schema to bc1391cf (#20432)
sentry-api-schema-updater[bot] Nov 3, 2026
f8b76c0
Bump API schema to 418e6a8f (#20433)
sentry-api-schema-updater[bot] Nov 3, 2026
feced65
Bump API schema to df30eafa (#20439)
sentry-api-schema-updater[bot] Nov 3, 2026
62853a9
Bump API schema to 2cf7aec3 (#20444)
sentry-api-schema-updater[bot] Nov 3, 2026
0e495fb
Bump API schema to 79cd50b3 (#20446)
sentry-api-schema-updater[bot] Nov 3, 2026
4c87c60
Bump API schema to 4e76d3ba (#20447)
sentry-api-schema-updater[bot] Nov 3, 2026
aedb44f
Bump API schema to e748eed2 (#20448)
sentry-api-schema-updater[bot] Nov 3, 2026
3301982
docs(integration-platform): Document alert action settings request, r…
sentry-junior[bot] Nov 3, 2026
f44a762
fix(onboarding): Offset nested headings below sticky feature selector…
sentry-junior[bot] Nov 3, 2026
614fa36
Bump API schema to 728bcd37 (#20449)
sentry-api-schema-updater[bot] Nov 3, 2026
846d73e
Bump API schema to 5c9cdf40 (#20450)
sentry-api-schema-updater[bot] Nov 4, 2026
11b9fbe
Bump API schema to d17b85b9 (#20451)
sentry-api-schema-updater[bot] Nov 4, 2026
59364de
Bump API schema to 9506d23e (#20452)
sentry-api-schema-updater[bot] Nov 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

# Codeowners listed below are used as a reference for the Sentry team to know who to contact for a given area of the codebase.

# /docs/platforms/android/ @getsentry/team-mobile-core
# /docs/platforms/apple/ @getsentry/team-mobile-core
# /docs/platforms/dart/ @getsentry/team-mobile-cross-platform
# /docs/platforms/react-native/ @getsentry/team-mobile-cross-platform
# /docs/platforms/javascript/guides/cordova/ @getsentry/team-mobile-cross-platform
# /docs/platforms/android/ @getsentry/team-mobile-android-sdk
# /docs/platforms/apple/ @getsentry/team-mobile-apple-sdk
# /docs/platforms/dart/ @getsentry/team-mobile-cross-platform-sdks
# /docs/platforms/react-native/ @getsentry/team-mobile-cross-platform-sdks
# /docs/platforms/javascript/guides/cordova/ @getsentry/team-mobile-cross-platform-sdks

# /docs/platforms/godot/ @getsentry/gdx
# /docs/platforms/nintendo-switch/ @getsentry/gdx
Expand Down
45 changes: 39 additions & 6 deletions .github/workflows/ai-evals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
# sentry-for-ai-evals is internal, so the jobs check it out with the readonly bot's token
# and use its actions from that path. Fork PRs get no secrets, so they're skipped. This
# repo is public, so the eval outputs aren't kept as artifacts; the results go to
# evals.sentry.dev.
# evals.sentry.dev. Once the eval jobs finish, the report job posts each label's products
# matrix, base and head, to Slack as the sentry-evals bot, and its log shows only whether
# each label was posted.

name: AI Evals

Expand Down Expand Up @@ -236,10 +238,10 @@ jobs:
path: sentry-for-ai
persist-credentials: false

# Sends this test's result into the run the plan job created for the label and
# side. The head reads the preview, and the base the merge base's production deploy
# when the plan job found one, or else the live docs. No artifact-name: this repo is
# public.
# Sends this test's result into the run the plan job created for the label, side and
# repeat, or for the label and side when the plan makes no run per repeat. The head
# reads the preview, and the base the merge base's production deploy when the plan
# job found one, or else the live docs. No artifact-name: this repo is public.
- uses: ./sentry-for-ai-evals/.github/actions/run-evals
with:
marker: ${{ matrix.job.marker }}
Expand All @@ -252,6 +254,37 @@ jobs:
base-sha: ${{ needs.plan.outputs.base-sha }}
sentry-for-ai-path: sentry-for-ai
docs-url: ${{ matrix.job.revision == 'head' && needs.plan.outputs.docs-url || needs.plan.outputs.base-docs-url }}
run-id: ${{ fromJSON(needs.plan.outputs.eval-runs)[format('{0}-{1}', matrix.job.label, matrix.job.revision)].id }}
run-id: ${{ matrix.job.run-id || fromJSON(needs.plan.outputs.eval-runs)[format('{0}-{1}', matrix.job.label, matrix.job.revision)].id }}
openrouter-api-key: ${{ secrets.AI_EVALS_OPENROUTER_API_KEY }}
evals-api-key: ${{ secrets.SENTRY_EVALS_API_KEY }}

# Skipped when a new push cancelled the eval jobs, since that push's run posts instead.
report:
needs: [plan, eval]
if: >-
!cancelled() && (needs.eval.result == 'success' || needs.eval.result == 'failure')
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Get sentry-for-ai-evals token
id: token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
client-id: ${{ vars.SENTRY_READONLY_BOT_CLIENT_ID }}
private-key: ${{ secrets.SENTRY_READONLYBOT_PRIVATE_KEY }}
repositories: sentry-for-ai-evals
permission-contents: read

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: getsentry/sentry-for-ai-evals
ref: ${{ needs.plan.outputs.evals-sha }}
token: ${{ steps.token.outputs.token }}
path: sentry-for-ai-evals
persist-credentials: false

- uses: ./sentry-for-ai-evals/.github/actions/post-matrix
with:
runs: ${{ needs.plan.outputs.eval-runs }}
slack-bot-token: ${{ secrets.EVALS_SLACK_BOT_TOKEN }}
evals-api-key: ${{ secrets.SENTRY_EVALS_API_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/screenshot-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- name: Install pipeline dependencies
run: npm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-docs-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'

- name: Update docs changelog
env:
Expand Down
13 changes: 5 additions & 8 deletions app/[[...path]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {SpecChangelog} from 'sentry-docs/components/specChangelog';
import {isSpecStatus} from 'sentry-docs/components/specConstants';
import {SpecMeta} from 'sentry-docs/components/specMeta';
import {isDevelopDocsIndexablePath} from 'sentry-docs/developDocsConfig';
import {DOCS_ORIGIN, isDeveloperDocs} from 'sentry-docs/docsSite.mjs';
import {
DocNode,
getCurrentPlatformOrGuide,
Expand All @@ -24,7 +25,6 @@ import {
nodeForPath,
} from 'sentry-docs/docTree';
import {getMDXComponent} from 'sentry-docs/getMDXComponent';
import {isDeveloperDocs} from 'sentry-docs/isDeveloperDocs';
import {
getDevDocsFrontMatter,
getDocsFrontMatter,
Expand Down Expand Up @@ -327,13 +327,10 @@ function resolveOgImageUrl(

export async function generateMetadata(props: MetadataProps): Promise<Metadata> {
const params = await props.params;
const domain = isDeveloperDocs
? 'https://develop.sentry.dev'
: 'https://docs.sentry.io';
// enable og image preview on preview deployments
const previewDomain = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: domain;
: DOCS_ORIGIN;
let title =
'Sentry Docs | Application Performance Monitoring & Error Tracking Software';
let customCanonicalTag: string = '';
Expand Down Expand Up @@ -382,7 +379,7 @@ export async function generateMetadata(props: MetadataProps): Promise<Metadata>
if (pageNode.frontmatter.og_image) {
ogImageUrl = resolveOgImageUrl(
pageNode.frontmatter.og_image,
previewDomain ?? domain,
previewDomain,
params.path
);
}
Expand All @@ -391,12 +388,12 @@ export async function generateMetadata(props: MetadataProps): Promise<Metadata>

// Default fallback
if (!ogImageUrl) {
ogImageUrl = `${previewDomain ?? domain}/og.png`;
ogImageUrl = `${previewDomain}/og.png`;
}

const images = [{url: ogImageUrl, width: 1200, height: 630}];

const canonical = `${domain}${canonicalPath(
const canonical = `${DOCS_ORIGIN}${canonicalPath(
customCanonicalTag || params.path?.join('/') || ''
)}`;

Expand Down
2 changes: 1 addition & 1 deletion app/api/source-map/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {NextResponse} from 'next/server';
import {isDeveloperDocs} from 'sentry-docs/docsSite.mjs';
import {getDevDocsFrontMatter, getDocsFrontMatter} from 'sentry-docs/frontmatter';
import {isDeveloperDocs} from 'sentry-docs/isDeveloperDocs';

/**
* API endpoint that returns a mapping of slugs to their source file paths.
Expand Down
17 changes: 0 additions & 17 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import './globals.css';
import {Theme} from '@radix-ui/themes';
import type {Metadata} from 'next';
import {Rubik} from 'next/font/google';
import Script from 'next/script';
import PlausibleProvider from 'next-plausible';
import {HashNavigation} from 'sentry-docs/components/hashNavigation';
import {SkipToContent} from 'sentry-docs/components/skipToContent';
Expand Down Expand Up @@ -50,22 +49,6 @@ export default function RootLayout({children}: {children: React.ReactNode}) {
{children}
</Theme>
</ThemeProvider>
<Script
strategy="lazyOnload"
src="https://widget.kapa.ai/kapa-widget.bundle.js"
data-website-id="cac7cc70-969e-4bc1-a968-55534a839be4"
data-button-hide // do not render kapa ai button
data-modal-override-open-class="kapa-ai-class" // all elements with this class will open the kapa ai modal
data-project-name="Sentry"
data-project-color="#6A5FC1"
data-project-logo="https://avatars.githubusercontent.com/u/1396951?s=280&v=4"
data-font-family="var(--font-rubik)"
data-modal-disclaimer="Please note: This is a tool that searches publicly available sources. Do not include any sensitive or personal information in your queries. For more on how Sentry handles your data, see our [Privacy Policy](https://sentry.io/privacy/)."
data-modal-example-questions="How to set up Sentry for Next.js?,What are tracePropagationTargets?"
data-user-analytics-cookie-enabled="false"
data-color-scheme="auto"
data-color-scheme-selector=".dark"
/>
</body>
</html>
);
Expand Down
27 changes: 11 additions & 16 deletions app/md-exports/[...path]/route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {readFile} from 'node:fs/promises';
import {join} from 'node:path';

import {isDeveloperDocs} from 'sentry-docs/isDeveloperDocs';
import {DOCS_ORIGIN, DOCTREE_FILENAME} from 'sentry-docs/docsSite.mjs';
import {AI_AGENT_PATTERN, matchPattern} from 'sentry-docs/lib/trafficClassification';
import {DocMetrics} from 'sentry-docs/metrics';

Expand All @@ -12,18 +12,13 @@ interface DocTreeNode {
children?: DocTreeNode[];
}

const BASE_URL = isDeveloperDocs
? 'https://develop.sentry.dev'
: 'https://docs.sentry.io';

let cachedDocTree: DocTreeNode | null = null;

async function getDocTree(): Promise<DocTreeNode> {
if (cachedDocTree) {
return cachedDocTree;
}
const filename = isDeveloperDocs ? 'doctree-dev.json' : 'doctree.json';
const treePath = join(process.cwd(), 'public', filename);
const treePath = join(process.cwd(), 'public', DOCTREE_FILENAME);
const raw = await readFile(treePath, 'utf-8');
cachedDocTree = JSON.parse(raw) as DocTreeNode;
return cachedDocTree;
Expand Down Expand Up @@ -83,7 +78,7 @@ export async function GET(
const lines: string[] = [
'---',
`title: "Page Not Found"`,
`url: "${BASE_URL}/${requestedPath}"`,
`url: "${DOCS_ORIGIN}/${requestedPath}"`,
'---',
'',
'# Page Not Found',
Expand All @@ -98,23 +93,23 @@ export async function GET(
ancestor.frontmatter?.title || ancestor.slug || 'this section';
lines.push(`## Pages in ${ancestorTitle}`);
lines.push('');
lines.push(renderSiblingList(ancestor.children, BASE_URL));
lines.push(renderSiblingList(ancestor.children, DOCS_ORIGIN));
lines.push('');
}

lines.push('## Find what you need');
lines.push('');
lines.push(`- [Site index](${BASE_URL}/llms.txt) — LLM-optimized page listing`);
lines.push(`- [Documentation root](${BASE_URL}/index.md) — full docs overview`);
lines.push(`- [Platforms](${BASE_URL}/platforms.md) — all SDK platforms`);
lines.push(`- [Site index](${DOCS_ORIGIN}/llms.txt) — LLM-optimized page listing`);
lines.push(`- [Documentation root](${DOCS_ORIGIN}/index.md) — full docs overview`);
lines.push(`- [Platforms](${DOCS_ORIGIN}/platforms.md) — all SDK platforms`);
lines.push('');

body = lines.join('\n');
} catch {
body = [
'---',
`title: "Page Not Found"`,
`url: "${BASE_URL}/${requestedPath}"`,
`url: "${DOCS_ORIGIN}/${requestedPath}"`,
'---',
'',
'# Page Not Found',
Expand All @@ -123,9 +118,9 @@ export async function GET(
'',
'## Find what you need',
'',
`- [Site index](${BASE_URL}/llms.txt) — LLM-optimized page listing`,
`- [Documentation root](${BASE_URL}/index.md) — full docs overview`,
`- [Platforms](${BASE_URL}/platforms.md) — all SDK platforms`,
`- [Site index](${DOCS_ORIGIN}/llms.txt) — LLM-optimized page listing`,
`- [Documentation root](${DOCS_ORIGIN}/index.md) — full docs overview`,
`- [Platforms](${DOCS_ORIGIN}/platforms.md) — all SDK platforms`,
'',
].join('\n');
}
Expand Down
2 changes: 1 addition & 1 deletion app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {useEffect, useState} from 'react';
import {DevelopDocsHeader} from 'sentry-docs/components/developDocsHeader';
import {Header} from 'sentry-docs/components/header';
import {Search} from 'sentry-docs/components/search';
import {isDeveloperDocs} from 'sentry-docs/isDeveloperDocs';
import {isDeveloperDocs} from 'sentry-docs/docsSite.mjs';
import {DocMetrics} from 'sentry-docs/metrics';

export default function NotFound() {
Expand Down
8 changes: 2 additions & 6 deletions app/robots.txt/route.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import {isDeveloperDocs} from 'sentry-docs/isDeveloperDocs';

const sitemap = isDeveloperDocs
? 'https://develop.sentry.dev/sitemap.xml'
: 'https://docs.sentry.io/sitemap.xml';
import {DOCS_ORIGIN} from 'sentry-docs/docsSite.mjs';

export const GET = (_request: Request) => {
return new Response(
`
Sitemap: ${sitemap}
Sitemap: ${DOCS_ORIGIN}/sitemap.xml

User-agent: *
Allow: /
Expand Down
8 changes: 2 additions & 6 deletions app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type {MetadataRoute} from 'next';
import {canonicalPath} from 'sentry-docs/canonical';
import {DEVELOP_DOCS_INDEXABLE_ROOTS} from 'sentry-docs/developDocsConfig';
import {DOCS_ORIGIN, isDeveloperDocs} from 'sentry-docs/docsSite.mjs';
import {type DocNode, getDocsRootNode} from 'sentry-docs/docTree';
import {isDeveloperDocs} from 'sentry-docs/isDeveloperDocs';

/**
* Recursively extracts all slugs (paths) from a DocNode tree.
Expand Down Expand Up @@ -39,15 +39,11 @@ function filterDevelopDocsPaths(paths: string[]): string[] {

export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const rootNode = await getDocsRootNode();
const baseUrl = isDeveloperDocs
? 'https://develop.sentry.dev'
: 'https://docs.sentry.io';

let paths = extractSlugsFromDocTree(rootNode);
if (isDeveloperDocs) {
paths = filterDevelopDocsPaths(paths);
}
return docsToSitemap(paths, baseUrl);
return docsToSitemap(paths, DOCS_ORIGIN);
}

function docsToSitemap(paths: string[], baseUrl: string): MetadataRoute.Sitemap {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,11 @@ Use this template as a starting point for the project description. For cross-SDK
- [ ] Public SDK example projects
- [ ] In-product prompts/onboarding
- [ ] Internal adoption/usage dashboards
- [ ] [sentry-for-ai skills](https://github.com/getsentry/sentry-for-ai)

### Have you thought about doing a
- [ ] [Sentry Product Blog](https://blog.sentry.io/) post
- [ ] [Sentry Engineering Blog](https://blog.sentry.io/engineering/) post
- [ ] [Sentry Changelog](https://sentry.io/changelog/) entry
- [ ] [Sentry Engineering Blog](https://sentry.engineering/blog) post
- [ ] [Internal Blog Post](https://vanguard.getsentry.net/)
- [ ] S&T video

Expand Down
8 changes: 7 additions & 1 deletion develop-docs/sdk/telemetry/attachments/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,13 @@ SDKs **MAY** attach a `view-hierarchy.json` file following the structure describ
For native SDKs (since 1.4.0), the path to the view hierarchy file **SHOULD** be configurable at SDK initialization. The SDK monitors the file and uploads it along with any event or crash:

```c
sentry_options_add_view_hierarchy(options, "./view-hierarchy.json");
void setup_scope(sentry_scope_t *scope, void *user_data) {
sentry_value_t attachment = sentry_attachment_from_file("./view-hierarchy.json");
sentry_attachment_set_type(attachment, SENTRY_ATTACHMENT_TYPE_VIEW_HIERARCHY);
sentry_scope_add_attachment(scope, attachment);
}

sentry_options_set_initial_scope(options, setup_scope, NULL);
```

<Alert>
Expand Down
Loading
Loading