GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(mistral): Add integration with `Chat.complete` and `Chat.complete_async` patches by alexander-alderman-webb · Pull Request #7528 · getsentry/sentry-python

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Sep 17, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

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, gen_ai.request.model and gen_ai.response.streaming attributes.

Issues

Reminders

  • Please add tests to validate your changes, and lint your code using uv run ruff.
  • Add GH Issue ID & Linear ID (if applicable)
  • PR title should use conventional commit style (feat:, fix:, ref:, meta:)
  • For external contributors: CONTRIBUTING.md, Sentry SDK development docs, Discord community

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
alexander-alderman-webb added 4 commits September 17, 2026 15:42
@alexander-alderman-webb
feat(mistral): Add integration with Chat.complete and Chat.complete_a…
eba2bae
…sync patches
@alexander-alderman-webb
.
4b57f72
@alexander-alderman-webb
.
08b3eb0
@alexander-alderman-webb
.
e5c7c9a
@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 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sentry-warden[bot]
sentry-warden Bot reviewed Sep 17, 2026
View reviewed changes
Comment thread sentry_sdk/integrations/mistral.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/integrations/mistral/test_mistral.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@alexander-alderman-webb
merge master and address comments
cb02dfa
sentry-warden[bot]
sentry-warden Bot reviewed Sep 21, 2026
View reviewed changes
Comment thread setup.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

alexander-alderman-webb added 2 commits September 21, 2026 09:40
@alexander-alderman-webb
.
4e2b954
@alexander-alderman-webb
.
4b631ad
@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 approved these changes Sep 21, 2026
View reviewed changes

@sentrivana sentrivana left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread sentry_sdk/integrations/__init__.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@alexander-alderman-webb
take out of auto-enabling
9cc9bef
sentry-warden[bot]
sentry-warden Bot reviewed Sep 21, 2026
View reviewed changes
Comment thread sentry_sdk/integrations/mistral.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

alexander-alderman-webb added 3 commits September 21, 2026 10:55
@alexander-alderman-webb
handle None Model
e21572c
@alexander-alderman-webb
generate GH workflows
ae22b23
@alexander-alderman-webb
raise min version to 2.0.5
868ea47
@alexander-alderman-webb
alexander-alderman-webb removed this pull request from stack #7530 September 21, 2026 10:38
@alexander-alderman-webb
alexander-alderman-webb merged commit 988fd0e into master Sep 21, 2026
166 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@alexander-alderman-webb
alexander-alderman-webb deleted the webb/mistral/chat-complete branch September 21, 2026 10:41
@sentry-release-bot sentry-release-bot Bot mentioned this pull request Sep 22, 2026
publish: getsentry/[email protected] getsentry/publish#9604
Closed
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@sentry-warden sentry-warden[bot] sentry-warden[bot] left review comments
@sentrivana sentrivana sentrivana approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@alexander-alderman-webb @sentrivana
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.