IMPORTANT: AGENTS.md files are the source of truth for AI agent instructions. Always update the relevant AGENTS.md file when adding or modifying agent guidance. Do not add to CLAUDE.md or…
No other project uses it yet
45k5mo agoReviewMountCreate a free account to mount
For critical commands, see the "Command Execution Guide" section in /AGENTS.md in the repository root. Multi-tenant queries MUST be scoped — never trust user-supplied IDs alone. - Always filter by…
No other project uses it yet
45k5mo agoReviewMountCreate a free account to mount
For critical commands and testing rules, see the "Command Execution Guide" section in /AGENTS.md in the repository root. Use apiOptions with useQuery from TanStack Query; never use the deprecated useApiQuery/getApiQueryData/setApiQueryData.…
No other project uses it yet
45k5mo agoReviewMountCreate a free account to mount
For test commands (make test-selective, pytest), see the "Command Execution Guide" section in /AGENTS.md in the repository root. This guide covers Python tests. For frontend React/TypeScript tests (*.spec.tsx, RTL, MockApiClient),…
45k5mo agoReviewMountCreate a free account to mount
This repository is Sentry's self-hosted packaging. It bundles upstream Sentry images (Sentry, Relay, Snuba, Symbolicator, and others) into a Docker Compose deployment with install/upgrade scripts, config templates, and optional patches.…
No other project uses it yet
9.6k56d agoReviewMountCreate a free account to mount
Monorepo with 40+ packages in @sentry/*, managed with Yarn workspaces and Nx. Prefer LSP over Grep/Read for code navigation — it's faster, precise, and avoids reading entire files: Use Grep…
8.8k2mo agoReviewMountCreate a free account to mount
Next.js apps use either webpack or turbopack as their bundler. This fundamentally changes how Sentry instruments the application. Detection: process.env.TURBOPACK or --turbo CLI flag (see src/config/util.ts:detectActiveBundler). Webpack builds use loaders…
8.8k2mo agoReviewMountCreate a free account to mount
Use tox for testing (not pytest directly): - Test matrix configuration is in tox.ini - Integration tests: uv run tox -e py3.14-{integration}-v{version} - Common tests: uv run tox -e py3.14-common - Run specific test file: TESTPATH=tests/integrations/logging/test_logging.py uv run tox -e py3.14-common - Run single test: TESTPATH=tests/path/to/test_file.py uv run tox -e py3.14-common -- -k "test_name" Mypy and its type stubs live in the opt-in typing dependency group: - Run uv run --group typing mypy sentry_sdk before committing (must pass with zero…
2.2k9mo agoReviewMountCreate a free account to mount
- sentry/sentry is the core PHP SDK, not an application or framework bundle. - Public entry points include the autoloaded global helpers in src/functions.php and the public classes and interfaces under src/. - Use this file for repo-specific constraints that are easy to miss, and explore the codebase for current implementation details. - The minimum supported PHP version for shipped code is 7.2. composer.json requires ^7.2|^8.0, so shipped code must remain valid on PHP 7.2 unless support policy is intentionally…
1.9k5mo agoReviewMountCreate a free account to mount
Sentry React Native SDK — a hybrid SDK: a TypeScript/JS layer on top that wraps the native sentry-cocoa (iOS) and sentry-android/java SDKs through a JS↔native bridge. Monorepo using yarn workspaces; the SDK itself is the packages/core package. Changes to the wrapped native SDKs can ripple to them and to downstream hybrid SDKs (Flutter, .NET/MAUI, Unity) — see Cross-Platform Dependencies. ✅ Always - Run yarn lint, yarn test, and yarn circularDepCheck before calling a change done; regenerate the API report (yarn…
1.8k3mo agoReviewMountCreate a free account to mount
Depth lives in the skills. The code-guidelines and test-guidelines skills (.agents/skills/) hold the authoritative, current guidance on code style, API/integration design, the bridge, and tests — load them before non-trivial work. This file covers the package's build/test commands, quick-reference conventions, and the TurboModule subsystem, which is documented nowhere else. Where a convention here overlaps a skill, the skill wins. Use describe/it blocks (preferred) or flat test() calls: Arrange-Act-Assert pattern — always structure tests with clear sections. Use specific Jest matchers:
1.8k3mo agoReviewMountCreate a free account to mount
Depth lives in the skills. code-guidelines (.agents/skills/, esp. references/native-bridge.md) is authoritative for bridge and native conventions — load it before non-trivial work. This file is the quick reference for the Android surface; where a convention here overlaps a skill, the skill wins. Android native code supports both React Native architectures — a bridge-method change usually has to land in both: Catch Throwable at the boundary — not just Exception, so an Error can't crash the app either (the module code…
1.8k3mo agoReviewMountCreate a free account to mount
Depth lives in the skills. code-guidelines (.agents/skills/, esp. references/native-bridge.md) is authoritative for bridge and native conventions — load it before non-trivial work. This file is the quick reference for the iOS surface; where a convention here overlaps a skill, the skill wins. Catch everything at the boundary and reject — never let an exception reach the app. The reject error code is the shared @"SentryReactNative", not a per-method code: ✅ Always - Resolve or reject every exported method — a…
1.8k3mo agoReviewMountCreate a free account to mount
The test bed for the SDK under Expo (config plugin, Metro integration, EAS). Use it to verify a change behaves in an Expo-managed app, not just a bare RN one. yarn start then follows the Expo CLI prompts to open on an iOS simulator, Android emulator, or a physical device. Because the SDK ships native code, plain Expo Go isn't enough — the run:* scripts build a dev client that includes it.
1.8k3mo agoReviewMountCreate a free account to mount
The end-to-end test bed for the SDK on a bare RN app. Use it to reproduce and verify a change on real devices/simulators, on both architectures. The iOS build varies on three axes, and there's a yarn script per combination. Install pods through one of these rather than a bare pod install — each exports the env the Podfile and pod update read (USE_FRAMEWORKS, ENABLE_PROD, ENABLE_NEW_ARCH): e.g. yarn pod-install-debug-static (New Arch, static frameworks) or yarn pod-install-release-dynamic-legacy (Old Arch, dynamic frameworks).…
1.8k3mo agoReviewMountCreate a free account to mount
This file covers the whole repository. Before working on a specific area, read the matching rule file in .cursor/rules/: Rules can be combined — a tracing scope issue may need both scopes and opentelemetry. There is no rule for Android profiling yet; read the sentry-android-core profiling code directly and fetch related rules such as options, offline, or api as needed. This is the Sentry Java/Android SDK - a comprehensive error monitoring and performance tracking SDK for Java and Android applications.…
1.4k7mo agoReviewMountCreate a free account to mount