Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sentry for error emissions in AgentOps SDK #864

Open
devin-ai-integration bot opened this issue Mar 18, 2025 · 1 comment
Open

Add sentry for error emissions in AgentOps SDK #864

devin-ai-integration bot opened this issue Mar 18, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@devin-ai-integration
Copy link
Contributor

devin-ai-integration bot commented Mar 18, 2025

Requirements

  • Put Sentry in the SDK so we see where folks are breaking
  • Provide an opt-out variable and document it
@devin-ai-integration devin-ai-integration bot added the enhancement New feature or request label Mar 18, 2025
@areibman areibman changed the title Implement OpenTelemetry error emissions in AgentOps SDK Add sentry for error emissions in AgentOps SDK Mar 18, 2025
@fenilfaldu
Copy link

Proposed Approach for Managing Sentry Integration

  1. Controlling Sentry
  • A global variable determines whether Sentry is active.
  • This variable can be changed dynamically at runtime.
  1. Sentry Setup
  • If enabled, Sentry initializes with the appropriate configuration.
  • If disabled, Sentry is not initialized, ensuring no errors are sent.
  1. Handling Errors
  • Errors are only logged in Sentry if tracking is turned on.
    -All exceptions are handled using the custom sentry function

Usage

By default, Sentry is enabled but can be switched on or off as needed.
Provide a function to toggle this setting when needed.
Developers can adjust the setting depending on requirements.

This method keeps Sentry tracking flexible while ensuring errors are recorded only when necessary.

@areibman @teocns Should I go with this approach??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant