sentry-sdk-setup

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
All Skills
All Skills

Sentry SDK Setup — Router

Sentry SDK 配置 — 路由

Detect the user's platform from project files (e.g.
package.json
,
go.mod
,
Gemfile
,
*.csproj
,
*.xcodeproj
), then load the matching SDK skill below.
SkillPlatformKey Frameworks
sentry-cocoa-sdk
iOS, macOS, tvOS, watchOS, visionOSSwift, SwiftUI, UIKit
sentry-dotnet-sdk
.NET, C#ASP.NET Core, MAUI, WPF, Blazor, Azure Functions
sentry-go-sdk
Gonet/http, Gin, Echo, Fiber
sentry-nextjs-sdk
Next.jsApp Router, Pages Router
sentry-python-sdk
PythonDjango, Flask, FastAPI, Celery
sentry-react-native-sdk
React NativeExpo managed, Expo bare
sentry-react-sdk
ReactReact Router, TanStack, Redux
sentry-ruby-sdk
RubyRails, Sinatra, Sidekiq
sentry-svelte-sdk
SvelteSvelteKit
从项目文件(例如
package.json
go.mod
Gemfile
*.csproj
*.xcodeproj
)中检测用户的平台,然后加载下方匹配的SDK技能。
Skill平台核心框架
sentry-cocoa-sdk
iOS, macOS, tvOS, watchOS, visionOSSwift, SwiftUI, UIKit
sentry-dotnet-sdk
.NET, C#ASP.NET Core, MAUI, WPF, Blazor, Azure Functions
sentry-go-sdk
Gonet/http, Gin, Echo, Fiber
sentry-nextjs-sdk
Next.jsApp Router, Pages Router
sentry-python-sdk
PythonDjango, Flask, FastAPI, Celery
sentry-react-native-sdk
React NativeExpo managed, Expo bare
sentry-react-sdk
ReactReact Router, TanStack, Redux
sentry-ruby-sdk
RubyRails, Sinatra, Sidekiq
sentry-svelte-sdk
SvelteSvelteKit

Routing Instructions

路由说明

  1. Inspect project files to identify the platform and framework.
  2. Match to the table above and load the corresponding skill.
  3. If Next.js is detected, prefer
    sentry-nextjs-sdk
    over
    sentry-react-sdk
    .
  4. If React Native is detected, prefer
    sentry-react-native-sdk
    over
    sentry-react-sdk
    .
  5. If no match is found, direct the user to https://docs.sentry.io/platforms/ to find their platform.
  1. 检查项目文件,识别对应的平台和框架。
  2. 匹配上表内容,加载对应的技能。
  3. 如果检测到Next.js,优先使用
    sentry-nextjs-sdk
    ,而非
    sentry-react-sdk
  4. 如果检测到React Native,优先使用
    sentry-react-native-sdk
    ,而非
    sentry-react-sdk
  5. 如果未找到匹配项,引导用户访问https://docs.sentry.io/platforms/ 查找对应平台。

Dynamic Skill Fetching

动态技能获取

If the matched SDK skill is not installed locally, fetch it directly from the repository:
  1. Build the raw URL:
    https://raw.githubusercontent.com/getsentry/sentry-for-ai/main/skills/<skill-name>/SKILL.md
  2. Fetch the file contents (e.g.
    curl -sL <url>
    ) and follow its instructions.
The Skill Tree lists every available skill with its path — use it as the source of truth for valid skill names and paths.
如果匹配的SDK技能未在本地安装,可直接从仓库拉取:
  1. 构造原始文件URL:
    https://raw.githubusercontent.com/getsentry/sentry-for-ai/main/skills/<skill-name>/SKILL.md
  2. 获取文件内容(例如执行
    curl -sL <url>
    )并遵循其中的说明操作。
技能树列出了所有可用技能及其路径,你可以将其作为有效技能名称和路径的权威来源。