Skip to content

feat: Add instrumentation for @mistralai/mistralai#1730

Open
Luca Forstner (lforst) wants to merge 9 commits intomainfrom
lforst/mistral-instr-e2e
Open

feat: Add instrumentation for @mistralai/mistralai#1730
Luca Forstner (lforst) wants to merge 9 commits intomainfrom
lforst/mistral-instr-e2e

Conversation

@lforst
Copy link
Copy Markdown
Member

@lforst Luca Forstner (lforst) commented Apr 2, 2026

Adds instrumentation for the mistral SDK (@mistralai/mistralai):

  • Agents.complete
  • Agents.stream
  • Chat.complete
  • Chat.stream
  • Fim.complete
  • Fim.stream
  • Embeddings.create

Notes:

  • Adds comprehensive E2E test suite with canary and different versions

@socket-security
Copy link
Copy Markdown

socket-security bot commented Apr 2, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​mistralai/​mistralai@​1.3.410010010096100
Added@​mistralai/​mistralai@​1.10.010010010096100
Added@​mistralai/​mistralai@​1.14.110010010096100
Added@​mistralai/​mistralai@​1.15.19910010096100
Added@​mistralai/​mistralai@​2.1.210010010097100

View full report

@lforst Luca Forstner (lforst) marked this pull request as ready for review April 2, 2026 14:02
@AbhiPrasad
Copy link
Copy Markdown
Member

I think we should instrument https://github.com/mistralai/client-ts/blob/main/docs/sdks/fim/README.md as well.

@lforst
Copy link
Copy Markdown
Member Author

I think we should instrument https://github.com/mistralai/client-ts/blob/main/docs/sdks/fim/README.md as well.

Sorry, forgot to mention in the PR desrciption. It's also instrumented.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🐐

metadata: Record<string, unknown>;
} {
const params = getMistralRequestArg(args);
const { messages, ...metadata } = params || {};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

do we want to put everything into metadata? or make this an allowlist of fields?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

intentional delete?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yeah unnecessar test imo

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