Skip to content

feat(mistral): Add integration with Chat.complete and Chat.complete_async patches - #7528

Open
alexander-alderman-webb wants to merge 11 commits into
masterfrom
webb/mistral/chat-complete
Open

alexander-alderman-webb wants to merge 11 commits into
masterfrom
webb/mistral/chat-complete

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Description

Add an integration for mistralai, the mistral tox environment, and mistralai to the uv typing group.

Only handle synchronous responses (there is an early return for streaming requests).

Set the gen_ai.provider.name, gen_ai.operation.name and gen_ai.response.streaming attributes.

Issues

Reminders

@alexander-alderman-webb
alexander-alderman-webb added this pull request to stack #7530 September 17, 2026 14:00
@github-actions

github-actions Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

128354 passed | ⏭️ 7148 skipped | Total: 135502 | Pass Rate: 94.72% | Execution Time: 440m 20s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +156
Passed Tests 📈 +139
Failed Tests
Skipped Tests 📈 +17

All tests are passing successfully.

✅ Patch coverage is 96.67%. Project has 2533 uncovered lines.
❌ Project coverage is 90.19%. Comparing base (e09a692) to head (868ea47).

Files with missing lines (1)
File Patch % Lines
sentry_sdk/integrations/mistral.py 96.67% ⚠️ 2 Missing and 4 partials
Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
- Coverage    90.20%    90.19%    -0.01%
==========================================
  Files          193       194        +1
  Lines        25773     25833       +60
  Branches      9532      9544       +12
==========================================
+ Hits         23248     23300       +52
- Misses        2525      2533        +8
- Partials      1431      1434        +3

Generated by Codecov Action

Comment thread sentry_sdk/integrations/mistral.py
Comment thread tests/integrations/mistral/test_mistral.py Outdated
Comment thread setup.py Outdated
@alexander-alderman-webb
alexander-alderman-webb marked this pull request as ready for review September 21, 2026 07:45
@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner September 21, 2026 07:45

@sentrivana sentrivana left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, just a note about auto enabling

Comment thread sentry_sdk/integrations/__init__.py Outdated
Comment thread sentry_sdk/integrations/mistral.py Outdated
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