Skip to content

feat(mistral): Record token usage - #7529

Merged
alexander-alderman-webb merged 18 commits into
masterfrom
webb/mistral/tokens
Sep 21, 2026
Merged

alexander-alderman-webb merged 18 commits into
masterfrom
webb/mistral/tokens

Conversation

@alexander-alderman-webb

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

Copy link
Copy Markdown
Contributor

Description

Record gen_ai.usage.input_tokens, gen_ai.usage.output_tokens and gen_ai.usage.total_tokens 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: 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

Comment thread sentry_sdk/integrations/mistral.py
@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
Comment thread sentry_sdk/integrations/mistral.py
@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
alexander-alderman-webb merged commit 9342968 into master Sep 21, 2026
166 checks passed
@alexander-alderman-webb
alexander-alderman-webb deleted the webb/mistral/tokens branch September 21, 2026 10:54
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