sentry-python
AGENTS.md2.2k starsChanged 9 months agoMITView on GitHub
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…
Trending
Quiet since February.about the whole repository
Who's talking about getsentry/sentry-python
- getsentry/sentry-java“JVM Profiling”GitHub · Apr 1, 2023 · 14 reactions
- getsentry/sentry-dotnet“OpenTelemetry Support”GitHub · Nov 25, 2022 · 11 reactions
- kiwicom/structlog-sentry“'<' not supported between instances of 'str' and 'datetime.datetime'”GitHub · Aug 5, 2024 · 10 reactions
- pypi/warehouse“Github Dark Mode Image Support”GitHub · Apr 20, 2022 · 9 reactions
- litestar-org/litestar“Enhancement: Add `Sentry` integration for 2.0”GitHub · Apr 17, 2023 · 7 reactions
The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 16
Talked about on GitHub (16 times).
On GitHub · 16
- Apr 1, 2023JVM Profiling — getsentry/sentry-java14 reactions · 18 comments
- Nov 25, 2022OpenTelemetry Support — getsentry/sentry-dotnet11 reactions · 4 comments
- Aug 5, 2024'<' not supported between instances of 'str' and 'datetime.datetime' — kiwicom/structlog-sentry10 reactions · 9 comments
- Apr 20, 2022Github Dark Mode Image Support — pypi/warehouse9 reactions · 14 comments
- Apr 17, 2023Enhancement: Add `Sentry` integration for 2.0 — litestar-org/litestar7 reactions · 15 comments
11 more on GitHub
- Oct 4, 2018Integration with new sentry client — Bogdanp/dramatiq6 reactions · 11 comments
- Dec 9, 2025[Bug]: Type Union Syntax Unsupported on Python 3.9 — BerriAI/litellm4 reactions
- Dec 10, 2020Add basic support for attachments — getsentry/sentry-cocoa4 reactions
- Feb 22, 2026chore(deps): bump the backend-patch-minor group in /backend with 7 updates — Prekzursil/momentstudio3 reactions · 9 comments
- Oct 30, 2025feat: feature flags — getsentry/sentry-php3 reactions
- Oct 31, 2024Django related improvements / feedback — getsentry/spotlight3 reactions · 1 comment
- May 1, 2024Remove `enableTracing` (and update docs accordingly) — getsentry/team-sdks3 reactions · 7 comments
- Nov 22, 2023Add Metrics API — getsentry/sentry-dotnet3 reactions · 6 comments
- Nov 20, 2023Tracing: W3C Trace Context Support — getsentry/team-sdks3 reactions · 9 comments
- May 9, 2023make pinning of requests less restrictive due to urllib3 debacle — resend/resend-python3 reactions · 3 comments
- Jan 6, 2023Crons: Support upsert for monitors — getsentry/sentry3 reactions · 6 comments
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- code-reviewSkill
- find-bugsSkill
- security-reviewSkill
- skill-scannerSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
15 rules. About 0 are common, 7 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Run tox via uv: uv run tox -e <env>
- Distinctive: line 10
Use tox for testing (not pytest directly):
- Very specific: line 11
Test matrix configuration is in tox.ini
- Very specific: line 14
Run specific test file: TESTPATH=tests/integrations/logging/test_logging.py uv run tox -e py3.14-common
- Very specific: line 15
Run single test: TESTPATH=tests/path/to/test_file.py uv run tox -e py3.14-common -- -k "test_name"
- Very specific: line 20
Run uv run --group typing mypy sentry_sdk before committing (must pass with zero errors)
- Distinctive: line 25
Use ruff for linting and formatting:
- Distinctive: line 31
Do NOT edit these directly — modify source scripts instead:
- Very specific: line 38
Add minimum version to _MIN_VERSIONS in sentry_sdk/integrations/__init__.py
- Very specific: line 39
Add config to TEST_SUITE_CONFIG in scripts/populate_tox/config.py
- Very specific: line 40
Add to group in scripts/split_tox_gh_actions/split_tox_gh_actions.py
- Distinctive: line 45
Don't crash applications or swallow exceptions
- Distinctive: line 46
Don't mutate object references or alter function signatures
- Distinctive: line 47
Don't leak file descriptors or make unexpected DB requests
- Distinctive: line 49
Use end-to-end tests (not mocks)
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Instructions
Tox
- Run tox via uv:
uv run tox -e <env> tox+tox-uvare declared as the project's default dev dependencies inpyproject.toml, so uv installs them automatically into.venv.
Package Manager
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"
Type Checking
Mypy and its type stubs live in the opt-in typing dependency group:
- Run
uv run --group typing mypy sentry_sdkbefore committing (must pass with zero errors) - Strict mode enabled (
check_untyped_defs,disallow_untyped_defs)
Linting & Formatting
Use ruff for linting and formatting:
uv run ruff check --fix tests sentry_sdkuv run ruff format tests sentry_sdk
Auto-Generated Files
Do NOT edit these directly — modify source scripts instead:
tox.ini— generated byscripts/populate_tox/populate_tox.pyfromscripts/populate_tox/tox.jinja.github/workflows/test-integrations-*.yml— generated byscripts/split_tox_gh_actions/split_tox_gh_actions.py- Regenerate all:
scripts/generate-test-files.sh
Adding Integrations to Test Suite
- Add minimum version to
_MIN_VERSIONSinsentry_sdk/integrations/__init__.py - Add config to
TEST_SUITE_CONFIGinscripts/populate_tox/config.py - Add to group in
scripts/split_tox_gh_actions/split_tox_gh_actions.py - Run
scripts/generate-test-files.sh
Integration Contract
- Don't crash applications or swallow exceptions
- Don't mutate object references or alter function signatures
- Don't leak file descriptors or make unexpected DB requests
- Write defensive code
- Use end-to-end tests (not mocks)
Key Paths
| Path | Description |
sentry_sdk/integrations/ | integration modules |
sentry_sdk/ai/ | AI monitoring |
sentry_sdk/crons/ | Cron monitoring |
sentry_sdk/profiler/ | Performance profiling |
tests/integrations/{name}/ | Integration test suites |
scripts/populate_tox/config.py | Test suite configuration |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

