Repository navigation
Update java-v9 branch #20839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Update java-v9 branch #20839
Changes from all commits
Commits
Show all changes
141 commits
Select commit
Hold shift + click to select a range
c993290
docs(java): Correct shutdownTimeoutMillis unit (#20683)
sentry-junior[bot] 8921964
feat(docs): Apply new quick start template to Dart and Flutter quick …
sentry-junior[bot] 6fabf68
docs(develop): Broaden invalid client report reason (#20595)
sentry-junior[bot] b9fb178
Bump API schema to 7caf510a (#20690)
sentry-api-schema-updater[bot] 0d261a8
Bump API schema to 411ccf67 (#20691)
sentry-api-schema-updater[bot] c61ca28
docs(otlp): Remove beta and alpha callouts from OTLP pages (#20649)
sentry-junior[bot] f892526
docs(cloudflare): Document the isStreamingResponse option (#20092)
sentry-junior[bot] 083a1af
Update Codeowners for Legal/Security docs (#20663)
geoffg-sentry ebcdb4c
feat(develop-docs): Render span attributes from sentry-conventions (#…
cleptric 1a2e1ef
docs(js): Move the Cloudflare quick starts into the framework guides …
JPeer264 c9ed905
feat(js): Add a framework selector to the Node.js, Bun and Deno quick…
JPeer264 40b6259
docs(js): Add runtime quick starts to the agent guides (#20467)
JPeer264 8fa5488
feat(platform-selector): Show JavaScript runtimes first (#20132)
JPeer264 fed8490
Bump API schema to a484918a (#20693)
sentry-api-schema-updater[bot] 84416d6
Bump API schema to e35efe6d (#20694)
sentry-api-schema-updater[bot] ad690a4
Bump API schema to e58a5c0e (#20696)
sentry-api-schema-updater[bot] cb0aa94
Bump API schema to 4674fdc9 (#20697)
sentry-api-schema-updater[bot] fcbe244
docs(godot): Document Web tunneling (#20596)
limbonaut 84d9832
docs(godot): Document automatic performance metrics (#20660)
limbonaut 70e38c3
docs(ai): Report onboarding progress through the Sentry CLI (#20650)
Abdkhan14 ce2d6f0
Bump API schema to 35520634 (#20701)
sentry-api-schema-updater[bot] dc0f73a
Bump API schema to c17b2fba (#20702)
sentry-api-schema-updater[bot] ec13806
perf(css): Ship only the Radix color scales we use (#20700)
coolguyzone ec47fe1
Bump API schema to a6c23b39 (#20703)
sentry-api-schema-updater[bot] b4a5554
Bump API schema to 1ef9bb60 (#20704)
sentry-api-schema-updater[bot] 38a66b7
docs(dotnet): Correct quick-start setup and verification (#20240)
sfanahata bce2484
Bump API schema to 821639eb (#20707)
sentry-api-schema-updater[bot] f8af3f0
Bump API schema to 5906b2a7 (#20708)
sentry-api-schema-updater[bot] 1731df1
Bump API schema to 71714be6 (#20710)
sentry-api-schema-updater[bot] 286c970
Bump API schema to f76ffa03 (#20712)
sentry-api-schema-updater[bot] 7623771
Bump API schema to b6988bd7 (#20713)
sentry-api-schema-updater[bot] e36c6f0
Bump API schema to 59ba269d (#20714)
sentry-api-schema-updater[bot] bf758ea
Bump API schema to 4431bbf1 (#20716)
sentry-api-schema-updater[bot] b2e1a29
Bump API schema to f13098b1 (#20717)
sentry-api-schema-updater[bot] 176be58
docs(react-native): Explain EAS env var setup for Expo source maps (#…
sentry-junior[bot] 2374e0a
Update migration notes for `sendDefaultPii` in SDK (#19340)
adinauer 27f9cd9
docs(apple): Warn that debug logging can slow down apps (#20725)
sentry-junior[bot] f15e241
docs(react-native): Document SPM setup (#20727)
alwx 1a20327
Bump API schema to 4c9379a2 (#20729)
sentry-api-schema-updater[bot] 0c2d0f8
Bump API schema to 699efd0b (#20730)
sentry-api-schema-updater[bot] dcc0a19
docs(develop): Document decision and extraction spans (#20107)
andreiborza 3e07aad
docs(develop): Document Objectstore hostAliases for Envoy sidecar (#2…
sentry-junior[bot] 89d78d2
docs(android): Add experimental out-of-process crash handling (#20431)
jpnurmi 29b1964
docs(crons): Document monitor config from @Scheduled for Spring @Sent…
wedamija d98d5ea
docs(java): Document Quartz monitor config upsert (#19777)
wedamija 43466ed
Bump API schema to 51beb3e8 (#20733)
sentry-api-schema-updater[bot] 1ce7b43
docs(issues): Update Issues page for the Feed and Issue Views (#20436)
sentry-junior[bot] 55a8557
docs(issues): List all supported repo providers for Web Vitals issues…
sentry-junior[bot] 8927871
docs(issues): Fix replay issue search, rage click alert steps, and hy…
sentry-junior[bot] aef7c12
docs(develop): Update issue type example category and grouptype links…
sentry-junior[bot] 8962907
docs(issues): Note that Endpoint Regression issues are no longer crea…
sentry-junior[bot] c04e8ad
docs(issues): Clarify uptime issue grouping and thresholds (#20510)
sentry-junior[bot] 0e5f816
Bump API schema to 4e986cf7 (#20734)
sentry-api-schema-updater[bot] bd54d17
Bump API schema to 52de466e (#20735)
sentry-api-schema-updater[bot] b5ae0b3
Bump API schema to 1e6b86c6 (#20736)
sentry-api-schema-updater[bot] 9cf174a
Bump API schema to cf430bfd (#20739)
sentry-api-schema-updater[bot] c70fd74
Bump API schema to 129e7904 (#20740)
sentry-api-schema-updater[bot] 0cb2e23
docs(develop): Point fork craft example at an active fork (#20738)
sentry-junior[bot] 1d6cfaf
Update the agent prompts in docs to point to Sentry CLI (#20586)
sfanahata b1c24c7
docs(nestjs): Document SentryCron monitor config from @Cron (#19782)
wedamija 3e33d6b
Bump API schema to d0a2e344 (#20753)
sentry-api-schema-updater[bot] d67c8ac
docs(develop): Fix the trace metric size limit (#20750)
logaretm d52e3b7
Bump API schema to 0a645b70 (#20754)
sentry-api-schema-updater[bot] 0c63ef5
docs(js): Use Lambda Event Functions naming in AWS Lambda guide (#20722)
sentry-junior[bot] 2643f95
feat(js): Add a framework selector to the Browser JavaScript quick st…
sentry-junior[bot] bb5b1b7
docs(python): Document Amazon Bedrock tracing (#20744)
alexander-alderman-webb f25c895
Bump API schema to c23c1fc5 (#20757)
sentry-api-schema-updater[bot] f4a964d
Bump API schema to 40e0d71b (#20758)
sentry-api-schema-updater[bot] b41f5b0
Bump API schema to 43ec4ae0 (#20759)
sentry-api-schema-updater[bot] 372425f
Bump API schema to d3b6fd0f (#20760)
sentry-api-schema-updater[bot] 867f9d8
Bump API schema to 6b734c5b (#20762)
sentry-api-schema-updater[bot] bb0dff4
Bump API schema to 64a372e0 (#20763)
sentry-api-schema-updater[bot] b806e1c
Bump API schema to e9eff808 (#20764)
sentry-api-schema-updater[bot] 23680a0
Bump API schema to 6a777657 (#20765)
sentry-api-schema-updater[bot] 579b6cc
chore(build): Remove Codecov bundle analysis plugin (#20720)
sentry-junior[bot] 7a7ffc5
Bump API schema to ffef2e1c (#20766)
sentry-api-schema-updater[bot] f1b98a7
Bump API schema to c94043be (#20767)
sentry-api-schema-updater[bot] 6af6484
Bump API schema to 9b2c7225 (#20769)
sentry-api-schema-updater[bot] 5e4a969
Bump API schema to 3fe91b7a (#20770)
sentry-api-schema-updater[bot] 22af4d6
Bump API schema to 36853aa5 (#20771)
sentry-api-schema-updater[bot] 716f84b
Bump API schema to 277ad58b (#20772)
sentry-api-schema-updater[bot] af4718b
Bump API schema to 95b38cf1 (#20773)
sentry-api-schema-updater[bot] b8932f2
Bump API schema to 9dccc92b (#20774)
sentry-api-schema-updater[bot] 36e7968
Bump API schema to 18c2d5fb (#20777)
sentry-api-schema-updater[bot] 5e4ffd9
Bump API schema to e5635105 (#20779)
sentry-api-schema-updater[bot] f62b827
Bump API schema to f15d1f5c (#20795)
sentry-api-schema-updater[bot] bcd767e
Bump API schema to b771503e (#20796)
sentry-api-schema-updater[bot] 635a5ec
Bump API schema to c08ef494 (#20797)
sentry-api-schema-updater[bot] e99454f
feat(api): Read the API base path from the spec's server URL (#20787)
sentry-junior[bot] a3d78d8
Bump API schema to f05e956a (#20798)
sentry-api-schema-updater[bot] db96a79
Bump API schema to 36d0d115 (#20799)
sentry-api-schema-updater[bot] bea506a
Bump API schema to 153706be (#20800)
sentry-api-schema-updater[bot] e1a31cc
Bump API schema to 2c01f623 (#20801)
sentry-api-schema-updater[bot] a2d3512
Bump API schema to 78718872 (#20802)
sentry-api-schema-updater[bot] 48055c1
Bump API schema to 19b0d618 (#20803)
sentry-api-schema-updater[bot] b2730e0
Bump API schema to a2c2741c (#20804)
sentry-api-schema-updater[bot] 1b7ba5c
Bump API schema to 5710a54d (#20805)
sentry-api-schema-updater[bot] 6fab73b
Bump API schema to 461c4966 (#20806)
sentry-api-schema-updater[bot] 05480c1
Bump API schema to 6c92bebc (#20807)
sentry-api-schema-updater[bot] e6fb2b0
docs(unity): Fix broken code samples and migration guide (#20412)
bitsandfoxes e85e93a
docs(unity): Fix options page defaults, types and stale options (#20413)
bitsandfoxes 7be45d0
Bump API schema to 99650c98 (#20808)
sentry-api-schema-updater[bot] 951cffc
Bump API schema to c3c65c9c (#20809)
sentry-api-schema-updater[bot] 9547e27
Add Linear integration documentation (#20709)
cmanallen cf5a659
docs(slack): Remove assistant:write scope and Seer Agent assistant do…
sentry-junior[bot] 280db0b
docs(unity): Document missing options and options configuration (#20414)
bitsandfoxes 80d61ae
docs(unity): Fix native support and platform docs (#20416)
bitsandfoxes fd041ae
feat(api-docs): Build the API reference from @sentry/api/docs (#20679)
sentry-junior[bot] 16307c1
Bump @sentry/api to 2.3.1 (#20811)
sentry-api-schema-updater[bot] ee97b72
Bump @sentry/api to 2.3.2 (#20812)
sentry-api-schema-updater[bot] 282c045
Bump @sentry/api to 2.4.0 (#20813)
sentry-api-schema-updater[bot] 79c1e15
Bump @sentry/api to 2.5.0 (#20815)
sentry-api-schema-updater[bot] ea3e2ac
ci(api-docs): Wait for the new @sentry/api version on dispatched bump…
sentry-junior[bot] 4f2e2d5
docs(dotnet): Update docs for SDK 7.0.0 (#20641)
ric-oliv 3ea46e5
docs(python): Update logging and Loguru integrations for SDK 3.0 (#20…
sentrivana 0455e40
docs(python): Update configuration options for SDK 3.0 (#20783)
sentrivana 721d4a4
docs(python): Use start_span in verify snippets for SDK 3.0 (#20785)
sentrivana 31787ec
docs(js): Add Bun, Deno and Cloudflare quick starts to the React Rout…
JPeer264 f4d3083
docs(python): Update integration options for SDK 3.0 (#20788)
sentrivana 919029e
docs(python): Update data collection pages for SDK 3.0 (#20790)
sentrivana 62b14bf
Bump @sentry/api to 2.5.1 (#20824)
sentry-api-schema-updater[bot] 4ef84d0
fix(apple): Use a published version in the SwiftLog SPM snippet (#20823)
sentry-junior[bot] eed2e21
docs(unity): Fix debug symbol upload docs (#20418)
bitsandfoxes d38d72e
docs(unity): Fix data collected, privacy and enriching pages (#20421)
bitsandfoxes 851aa6d
docs(unity): Fix tracing, logs, metrics and error capture docs (#20426)
bitsandfoxes 55de485
Bump @sentry/api to 2.5.2 (#20825)
sentry-api-schema-updater[bot] 5720773
Bump @sentry/api to 2.5.3 (#20826)
sentry-api-schema-updater[bot] a21f2e1
Bump @sentry/api to 2.6.0 (#20827)
sentry-api-schema-updater[bot] 630ff0b
Bump @sentry/api to 2.6.1 (#20830)
sentry-api-schema-updater[bot] 0ade608
Bump @sentry/api to 2.7.0 (#20831)
sentry-api-schema-updater[bot] 603b749
docs(python): Update integration data collection notes for SDK 3.0 (#…
sentrivana 571488c
Bump @sentry/api to 2.7.0 (#20832)
sentry-api-schema-updater[bot] f06f850
docs(python): Make SDK 3.x the default in tracing pages (#20786)
sentrivana d864dd8
chore(deps): Bump @sentry/browser and @sentry/nextjs to 11.12.0 (#20821)
sentry-junior[bot] ccfa3b9
docs(js): Document the managed tunnel and serveTunnelIntegration (#20…
logaretm ad9c204
docs(dotnet): Add Quartz.NET crons page (#19790)
wedamija d0949a6
docs(apple): Add troubleshooting entry for revoked signing certificat…
sentry-junior[bot] b48de0b
docs(dotnet): Document monitoring all Quartz.NET jobs (#20051)
wedamija 0d36307
chore: Run the Prettier and ESLint hooks from the repo's own install …
jamescrosswell f44b04c
docs(unity): Update screenshots, options and sampling for SDK 4.13.0 …
bitsandfoxes d2895e9
docs(apple): Document automatic WebView trace propagation (#20543)
antonis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
161 changes: 161 additions & 0 deletions
161
app/api/platform-content/[platform]/[runtime]/[framework]/[...includePath]/route.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,161 @@ | ||
| import { | ||
| PlatformContentPayload, | ||
| RUNTIMES, | ||
| } from 'sentry-docs/components/frameworkSelector/frameworks'; | ||
| import {resolvePlatformContent} from 'sentry-docs/components/platformContent'; | ||
| import {getFileBySlugWithCache} from 'sentry-docs/mdx'; | ||
|
|
||
| /** | ||
| * Serves the compiled MDX of a `<PlatformContent>` include as it applies to a framework running | ||
| * on a runtime, so a runtime's page can swap in framework snippets client-side | ||
| * (see `<FrameworkSelector>`). | ||
| * | ||
| * Only the combinations from `generateStaticParams` are built; there is no runtime rendering. | ||
| */ | ||
|
|
||
| export const dynamic = 'force-static'; | ||
| export const dynamicParams = false; | ||
|
|
||
| export function generateStaticParams() { | ||
| return Object.entries(RUNTIMES).flatMap(([runtime, {frameworks, includePaths}]) => | ||
| frameworks.flatMap(({key: framework}) => | ||
| includePaths.map(includePath => ({ | ||
| platform: 'javascript', | ||
| runtime, | ||
| framework, | ||
| includePath: includePath.split('/'), | ||
| })) | ||
| ) | ||
| ); | ||
| } | ||
|
|
||
| type SlugFile = Awaited<ReturnType<typeof getFileBySlugWithCache>>; | ||
|
|
||
| async function tryGetFile(slug: string): Promise<SlugFile | undefined> { | ||
| try { | ||
| return await getFileBySlugWithCache(slug); | ||
| } catch { | ||
| return undefined; | ||
| } | ||
| } | ||
|
|
||
| /** | ||
| * Resolves an include for a framework on a runtime: | ||
| * 1. `<platform>.<runtime>.<framework>`, for snippets specific to both | ||
| * 2. On Node.js, the framework guide's content, which falls back to Node.js | ||
| * Elsewhere, only a `<platform>.<framework>` snippet, to not pull in Node.js content | ||
| * 3. The runtime guide's own content | ||
| */ | ||
| async function resolveForFramework( | ||
| includePath: string, | ||
| platform: string, | ||
| runtime: string, | ||
| framework: string | ||
| ): Promise<SlugFile | null | undefined> { | ||
| const base = `platform-includes/${includePath}/${platform}`; | ||
|
|
||
| const doc = await tryGetFile(`${base}.${runtime}.${framework}`); | ||
| if (doc) { | ||
| return doc; | ||
| } | ||
|
|
||
| if (runtime === 'node') { | ||
| return resolvePlatformContent({ | ||
| includePath, | ||
| path: ['platforms', platform, 'guides', framework], | ||
| }); | ||
| } | ||
|
|
||
| return ( | ||
| (await tryGetFile(`${base}.${framework}`)) ?? | ||
| resolvePlatformContent({ | ||
| includePath, | ||
| path: ['platforms', platform, 'guides', runtime], | ||
| }) | ||
| ); | ||
| } | ||
|
|
||
| const INCLUDE_RE = /<Include\s+name=["']([^"']+)["']/g; | ||
| const PLATFORM_CONTENT_RE = /<PlatformContent\s+includePath=["']([^"']+)["']/g; | ||
|
|
||
| async function collectNested( | ||
| source: string, | ||
| resolve: (includePath: string) => Promise<SlugFile | null | undefined>, | ||
| payload: PlatformContentPayload | ||
| ) { | ||
| for (const [, rawName] of source.matchAll(INCLUDE_RE)) { | ||
| const name = rawName.replace(/\.mdx$/, ''); | ||
| if (name in payload.includes) { | ||
| continue; | ||
| } | ||
| // Missing includes render nothing, same as <Include>. | ||
| const doc = await tryGetFile(`includes/${name}`); | ||
| if (doc) { | ||
| payload.includes[name] = doc.mdxSource; | ||
| await collectNested(doc.matter.content, resolve, payload); | ||
| } | ||
| } | ||
|
|
||
| for (const [, includePath] of source.matchAll(PLATFORM_CONTENT_RE)) { | ||
| if (includePath in payload.platformContents) { | ||
| continue; | ||
| } | ||
| const doc = await resolve(includePath); | ||
| payload.platformContents[includePath] = doc?.mdxSource ?? null; | ||
| if (doc) { | ||
| await collectNested(doc.matter.content, resolve, payload); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| async function buildPayload( | ||
| includePath: string, | ||
| resolve: (includePath: string) => Promise<SlugFile | null | undefined> | ||
| ): Promise<PlatformContentPayload> { | ||
| const doc = await resolve(includePath); | ||
| const payload: PlatformContentPayload = { | ||
| changed: false, | ||
| code: doc?.mdxSource ?? null, | ||
| includes: {}, | ||
| platformContents: {}, | ||
| }; | ||
| if (doc) { | ||
| await collectNested(doc.matter.content, resolve, payload); | ||
| } | ||
| return payload; | ||
| } | ||
|
|
||
| export async function GET( | ||
| _request: Request, | ||
| { | ||
| params, | ||
| }: { | ||
| params: Promise<{ | ||
| framework: string; | ||
| includePath: string[]; | ||
| platform: string; | ||
| runtime: string; | ||
| }>; | ||
| } | ||
| ) { | ||
| const {platform, runtime, framework, includePath} = await params; | ||
| const resolve = (path: string) => | ||
| resolveForFramework(path, platform, runtime, framework); | ||
|
|
||
| const resolveForRuntime = (path: string) => | ||
| resolvePlatformContent({ | ||
| includePath: path, | ||
| path: ['platforms', platform, 'guides', runtime], | ||
| }); | ||
|
|
||
| const [payload, runtimePayload] = await Promise.all([ | ||
| buildPayload(includePath.join('/'), resolve), | ||
| buildPayload(includePath.join('/'), resolveForRuntime), | ||
| ]); | ||
| payload.changed = | ||
| payload.code !== runtimePayload.code || | ||
| JSON.stringify(payload.platformContents) !== | ||
| JSON.stringify(runtimePayload.platformContents); | ||
|
|
||
| return Response.json(payload); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Radix overlays missing alpha scales
Medium Severity
The Radix Themes import list adds only the semantic color scales in use and omits the black and white alpha scales. Those tokens back overlays, shadows, and scrims, so dropdowns, dialogs, and elevated surfaces can render with transparent or missing chrome.
Reviewed by Cursor Bugbot for commit d2895e9. Configure here.