| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Hey @tonal thanks for the PR, great work! Could you address the cursor comments above? |
Sorry, something went wrong.
| """ | ||
| Adapted from module sentry_sdk.integrations.asyncpg | ||
| """ |
There was a problem hiding this comment.
Hi @tonal ,
Thanks for the contribution, much appreciated!
Can you add unit tests for the integration as well? You can probably adapt them from the asyncpg tests.
Sorry, something went wrong.
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Integrations
Other
Bug Fixes 🐛Anthropic
Pydantic Ai
Other
Internal Changes 🔧Litellm
Other
Other
🤖 This preview updates automatically when you update the PR. |
Sorry, something went wrong.
Rewrite the aiomysql integration to fix issues raised in PR getsentry#4703: - Patch Cursor.execute and Cursor.executemany instead of Connection.query - Make _wrap_connect async (await inside span context) - Handle bytes/bytearray queries from executemany's internal batching - Normalize query text using " ".join(query.split()) for performance - Protect _sentry_skip_next_execute flag with try/finally to prevent leakage - Remove dead _wrap_cursor and unused _record context manager Add 17 end-to-end tests covering connect, execute, executemany, record_params, cursor iteration, connection pools, query source, span origin, and normalization. Update CI configuration: tox.ini envlist, GitHub Actions workflow with MySQL service container, and test suite config. Co-Authored-By: Qwen Code <noreply@anthropic.com> Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Create _get_connect_data() to build breadcrumb dict directly from connection, instead of relying on span._data which is empty for NoOpSpan. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
CI problems have been resolved. Please merge master into your branch @tonal. |
Sorry, something went wrong.
- Add needs_mysql to services check - Add MySQL service container configuration - Add MySQL environment variables for tests
|
@cursor[bot] Regarding the "Nested executemany clears skip flag" issue: After reviewing the aiomysql source code (aiomysql/cursors.py), I can confirm that executemany does NOT call itself recursively:
The nested executemany scenario described in the comment cannot occur with the actual aiomysql implementation. The current boolean flag approach works correctly for this use case. This is a false positive - the theoretical issue doesn't apply to this integration. The MySQL CI flag issue has been fixed. |
Sorry, something went wrong.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 7c952eb. Configure here.
Sorry, something went wrong.
- Use DB_SYSTEM_NAME instead of DB_SYSTEM for StreamedSpan - Use DB_NAMESPACE instead of DB_NAME for StreamedSpan - Add DB_DRIVER_NAME attribute for both StreamedSpan and regular Span - Follow asyncpg/sqlalchemy integration patterns
- Update _get_connect_data to accept use_streaming_keys flag - Use DB_SYSTEM_NAME and DB_NAMESPACE for streaming breadcrumbs - Create span_attributes by merging internal keys with breadcrumb_data - Breadcrumbs no longer contain internal Sentry keys (sentry.op, sentry.origin)
|
You'll have to merge master in again because of recent changes to our test matrix 😬. Otherwise LGTM so I'll merge once that's done! |
Sorry, something went wrong.
Co-authored-by: Anton Pirker <anton.pirker@sentry.io> Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
Add support for aiomysql to the SDK.