getsentry / getsentry/sentry-python

Refactor logic such that all AI message handling is provider-dependent

Open
#5,972 1 comment 0 reactions 0 assignees View on GitHub
Python Refactoring Task
Dominant language
Python
Stars
2.2k
Forks
669
Avg merge
1d 40m
Merged PRs (30d)
212

Description

Due to subtleties in each provider, this leads to fragile, difficult to understand code that has led to strange edge case behaviour for our users.

We need to move towards having all message handling be provider-dependent in order to make it easier for us to maintain and extend these integrations going forward.

Example:

* `truncate_and_annotate_messages`
* Message truncation will eventually be going away so when that happens, it'll be a good opportunity to deal with this function

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.