Repository navigation
Add runnable Sentry host-integration example - #24
Merged
Merged
Conversation
Adds a sentry extra and a capture_exception() helper that forwards provider/workflow-pipeline exceptions to a Sentry client the host app has already initialized. AgentEase never initializes its own client or ships a DSN, so this stays a no-op without the host opting in, preserving the existing "no hosted telemetry" guarantee. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LE37KoRF65NssAgS3SD2DG
Demonstrates the documented pattern where the host app owns sentry_sdk.init() and AgentEase only forwards exceptions to it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Loy9A4KTAC89kAyGywzo4a
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015bk3CYr8RPkXWrH1u8dSPp
# Conflicts: # README.md
The main-branch merge left a duplicated sentry-sdk entry that uv itself couldn't parse. Regenerated the lockfile from pyproject.toml instead of trusting the text merge. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MAVeY8HZhca5nJ2Hij7Bwr
sentry-sdk captures local stack-frame variables by default; combined with send_default_pii=True, an exception raised during PII scrubbing would send raw (unscrubbed) workflow input to Sentry, contradicting the SDK's privacy guarantee. Flagged by Sentry's own PR review bot. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MAVeY8HZhca5nJ2Hij7Bwr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
examples/sentry_integration.py, a runnable demo of the host app owningsentry_sdk.init()while AgentEase forwards exceptions to it (peragentease/telemetry/sentry.py's existing contract)SENTRY_DSNplaceholder to.env.exampleTest plan
python examples/sentry_integration.pyruns end-to-end in offline mode withsentry-sdkinstalledruff check/ruff format --checkpass on the new file🤖 Generated with Claude Code
https://claude.ai/code/session_01Loy9A4KTAC89kAyGywzo4a