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

feat(autofix): Add trace context to prompts and offer tools #2198

Merged
merged 5 commits into from
Mar 19, 2025

Conversation

roaga
Copy link
Member

@roaga roaga commented Mar 18, 2025

  • Adds trace tree to root cause and solution prompts
  • Adds two tools to fetch profiles, spans, and connected errors

Both are gated just to @roaga (me) for now.

@roaga roaga requested a review from jennmueng March 18, 2025 21:19
@roaga roaga requested a review from a team as a code owner March 18, 2025 21:19
Copy link
Contributor

✅ Sentry found no issues in your recent changes ✅

) # expecting data compatible with Profile model
if not profile_data:
return "Could not fetch profile."
profile = Profile.model_validate(profile_data)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

smells like potential validation errors will happen here, should we gracefully handle this and say return a string saying an error occurred in this tool?

@roaga roaga merged commit 986a510 into main Mar 19, 2025
22 of 23 checks passed
@roaga roaga deleted the autofix/trace-connected branch March 19, 2025 23:32
Copy link

sentry-io bot commented Mar 20, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ AttributeError: 'NoneType' object has no attribute 'format_event_without_breadcrumbs' seer.automation.autofix.steps.root_cause_step.r... View Issue

Did you find this useful? React with a 👍 or 👎

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

Successfully merging this pull request may close these issues.

2 participants