sentry-sdk-setup
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAll Skills
All Skills
Sentry SDK Setup — Router
Sentry SDK 配置 — 路由
Detect the user's platform from project files (e.g. , , , , ), then load the matching SDK skill below.
package.jsongo.modGemfile*.csproj*.xcodeproj| Skill | Platform | Key Frameworks |
|---|---|---|
| iOS, macOS, tvOS, watchOS, visionOS | Swift, SwiftUI, UIKit |
| .NET, C# | ASP.NET Core, MAUI, WPF, Blazor, Azure Functions |
| Go | net/http, Gin, Echo, Fiber |
| Next.js | App Router, Pages Router |
| Python | Django, Flask, FastAPI, Celery |
| React Native | Expo managed, Expo bare |
| React | React Router, TanStack, Redux |
| Ruby | Rails, Sinatra, Sidekiq |
| Svelte | SvelteKit |
从项目文件(例如 、、、、)中检测用户的平台,然后加载下方匹配的SDK技能。
package.jsongo.modGemfile*.csproj*.xcodeproj| Skill | 平台 | 核心框架 |
|---|---|---|
| iOS, macOS, tvOS, watchOS, visionOS | Swift, SwiftUI, UIKit |
| .NET, C# | ASP.NET Core, MAUI, WPF, Blazor, Azure Functions |
| Go | net/http, Gin, Echo, Fiber |
| Next.js | App Router, Pages Router |
| Python | Django, Flask, FastAPI, Celery |
| React Native | Expo managed, Expo bare |
| React | React Router, TanStack, Redux |
| Ruby | Rails, Sinatra, Sidekiq |
| Svelte | SvelteKit |
Routing Instructions
路由说明
- Inspect project files to identify the platform and framework.
- Match to the table above and load the corresponding skill.
- If Next.js is detected, prefer over
sentry-nextjs-sdk.sentry-react-sdk - If React Native is detected, prefer over
sentry-react-native-sdk.sentry-react-sdk - If no match is found, direct the user to https://docs.sentry.io/platforms/ to find their platform.
- 检查项目文件,识别对应的平台和框架。
- 匹配上表内容,加载对应的技能。
- 如果检测到Next.js,优先使用,而非
sentry-nextjs-sdk。sentry-react-sdk - 如果检测到React Native,优先使用,而非
sentry-react-native-sdk。sentry-react-sdk - 如果未找到匹配项,引导用户访问https://docs.sentry.io/platforms/ 查找对应平台。
Dynamic Skill Fetching
动态技能获取
If the matched SDK skill is not installed locally, fetch it directly from the repository:
- Build the raw URL:
https://raw.githubusercontent.com/getsentry/sentry-for-ai/main/skills/<skill-name>/SKILL.md - Fetch the file contents (e.g. ) and follow its instructions.
curl -sL <url>
The Skill Tree lists every available skill with its path — use it as the source of truth for valid skill names and paths.
如果匹配的SDK技能未在本地安装,可直接从仓库拉取:
- 构造原始文件URL:
https://raw.githubusercontent.com/getsentry/sentry-for-ai/main/skills/<skill-name>/SKILL.md - 获取文件内容(例如执行)并遵循其中的说明操作。
curl -sL <url>
技能树列出了所有可用技能及其路径,你可以将其作为有效技能名称和路径的权威来源。