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): Record token usage by alexander-alderman-webb · Pull Request #7529 · 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

Record gen_ai.usage.input_tokens, gen_ai.usage.output_tokens and gen_ai.usage.total_tokens 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 5 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
feat(mistral): Record token usage
e07fee8
@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: 443m 57s

📊 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 90.48%. Project has 2536 uncovered lines.
✅ Project coverage is 90.19%. Comparing base (988fd0e) to head (3d1db0b).

Files with missing lines (1)
File Patch % Lines
sentry_sdk/integrations/mistral.py 90.48% ⚠️ 2 Missing and 8 partials
Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
+ Coverage    90.19%    90.19%        —%
==========================================
  Files          194       194         —
  Lines        25833     25852       +19
  Branches      9544      9560       +16
==========================================
+ Hits         23299     23316       +17
- Misses        2534      2536        +2
- Partials      1435      1442        +7

Generated by Codecov Action

All reactions

Sorry, something went wrong.

Uh oh!

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

alexander-alderman-webb added 2 commits September 21, 2026 08:55
@alexander-alderman-webb
merge master and address comments
cb02dfa
@alexander-alderman-webb
merge
6cc054a
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 09:40
@alexander-alderman-webb
.
4e2b954
@alexander-alderman-webb
.
4b631ad
@alexander-alderman-webb
Merge branch 'webb/mistral/chat-complete' into webb/mistral/tokens
0bca24b
@alexander-alderman-webb
alexander-alderman-webb marked this pull request as ready for review September 21, 2026 07:46
@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner September 21, 2026 07:46
sentrivana
sentrivana approved these changes Sep 21, 2026
View reviewed changes
alexander-alderman-webb added 2 commits September 21, 2026 10:30
@alexander-alderman-webb
take out of auto-enabling
9cc9bef
@alexander-alderman-webb
Merge branch 'webb/mistral/chat-complete' into webb/mistral/tokens
203b691
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 5 commits September 21, 2026 10:55
@alexander-alderman-webb
handle None Model
e21572c
@alexander-alderman-webb
generate GH workflows
ae22b23
@alexander-alderman-webb
Merge branch 'webb/mistral/chat-complete' into webb/mistral/tokens
eb04a75
@alexander-alderman-webb
raise min version to 2.0.5
868ea47
@alexander-alderman-webb
Merge branch 'webb/mistral/chat-complete' into webb/mistral/tokens
e19d1f0
@alexander-alderman-webb
alexander-alderman-webb removed this pull request from stack #7530 September 21, 2026 10:38
Base automatically changed from webb/mistral/chat-complete to master September 21, 2026 10:41
@alexander-alderman-webb
merge master
3d1db0b
@alexander-alderman-webb
alexander-alderman-webb merged commit 9342968 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/tokens branch September 21, 2026 10:54
@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.