Skip to content

Commit cd4eb98

Browse files
nicohrubecclaude
andcommitted
fix(mistral): Fix CI — re-exports, deno snapshot, and CJS tests
- Remove `failsOnCjs` from the Mistral suite: CJS auto-instrumentation works on a full build (it only failed under a partial local rebuild), so the tests pass in both ESM and CJS. - Re-export `mistralAIIntegration` / `instrumentMistralClient` from the dependent SDK packages (aws-serverless, bun, elysia, deno, google-cloud-serverless, astro, cloudflare, vercel-edge) so the node-exports consistency check passes. - Add `Mistral` to the Deno default-integrations snapshot. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent bc0fbe4 commit cd4eb98

10 files changed

Lines changed: 201 additions & 243 deletions

File tree

‎dev-packages/node-integration-tests/suites/tracing/mistral/test.ts‎

Lines changed: 185 additions & 243 deletions
Large diffs are not rendered by default.

‎packages/astro/src/index.server.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export {
9191
nodeContextIntegration,
9292
onUncaughtExceptionIntegration,
9393
onUnhandledRejectionIntegration,
94+
mistralAIIntegration,
9495
openAIIntegration,
9596
langChainIntegration,
9697
langGraphIntegration,
@@ -157,6 +158,7 @@ export {
157158
withScope,
158159
supabaseIntegration,
159160
instrumentSupabaseClient,
161+
instrumentMistralClient,
160162
instrumentOpenAiClient,
161163
instrumentAnthropicAiClient,
162164
instrumentGoogleGenAIClient,

‎packages/aws-serverless/src/index.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export {
5959
nativeNodeFetchIntegration,
6060
onUncaughtExceptionIntegration,
6161
onUnhandledRejectionIntegration,
62+
mistralAIIntegration,
6263
openAIIntegration,
6364
langChainIntegration,
6465
langGraphIntegration,
@@ -140,6 +141,7 @@ export {
140141
updateSpanName,
141142
supabaseIntegration,
142143
instrumentSupabaseClient,
144+
instrumentMistralClient,
143145
instrumentOpenAiClient,
144146
instrumentAnthropicAiClient,
145147
instrumentGoogleGenAIClient,

‎packages/bun/src/index.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export {
8181
httpServerSpansIntegration,
8282
onUncaughtExceptionIntegration,
8383
onUnhandledRejectionIntegration,
84+
mistralAIIntegration,
8485
openAIIntegration,
8586
langChainIntegration,
8687
langGraphIntegration,
@@ -157,6 +158,7 @@ export {
157158
updateSpanName,
158159
supabaseIntegration,
159160
instrumentSupabaseClient,
161+
instrumentMistralClient,
160162
instrumentOpenAiClient,
161163
instrumentAnthropicAiClient,
162164
instrumentGoogleGenAIClient,

‎packages/cloudflare/src/index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export {
125125
openTelemetryIntegration,
126126
getOtlpTracesEndpoint,
127127
prismaIntegration,
128+
instrumentMistralClient,
128129
instrumentOpenAiClient,
129130
instrumentAnthropicAiClient,
130131
instrumentGoogleGenAIClient,

‎packages/deno/src/index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export {
140140
mongooseIntegration,
141141
mysqlIntegration,
142142
mysql2Integration,
143+
mistralAIIntegration,
143144
openAIIntegration,
144145
postgresIntegration,
145146
postgresJsIntegration,

‎packages/deno/test/__snapshots__/mod.test.ts.snap‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ snapshot[`captureMessage 1`] = `
8484
"OpenAI",
8585
"Anthropic_AI",
8686
"Google_GenAI",
87+
"Mistral",
8788
"PostgresJs",
8889
"Firebase",
8990
],
@@ -192,6 +193,7 @@ snapshot[`captureMessage twice 1`] = `
192193
"OpenAI",
193194
"Anthropic_AI",
194195
"Google_GenAI",
196+
"Mistral",
195197
"PostgresJs",
196198
"Firebase",
197199
],
@@ -307,6 +309,7 @@ snapshot[`captureMessage twice 2`] = `
307309
"OpenAI",
308310
"Anthropic_AI",
309311
"Google_GenAI",
312+
"Mistral",
310313
"PostgresJs",
311314
"Firebase",
312315
],

‎packages/elysia/src/index.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export {
6060
fetchIntegration,
6161
onUncaughtExceptionIntegration,
6262
onUnhandledRejectionIntegration,
63+
mistralAIIntegration,
6364
openAIIntegration,
6465
langChainIntegration,
6566
langGraphIntegration,
@@ -134,6 +135,7 @@ export {
134135
updateSpanName,
135136
supabaseIntegration,
136137
instrumentSupabaseClient,
138+
instrumentMistralClient,
137139
instrumentOpenAiClient,
138140
instrumentAnthropicAiClient,
139141
instrumentGoogleGenAIClient,

‎packages/google-cloud-serverless/src/index.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export {
5959
nativeNodeFetchIntegration,
6060
onUncaughtExceptionIntegration,
6161
onUnhandledRejectionIntegration,
62+
mistralAIIntegration,
6263
openAIIntegration,
6364
langChainIntegration,
6465
langGraphIntegration,
@@ -137,6 +138,7 @@ export {
137138
supabaseIntegration,
138139
systemErrorIntegration,
139140
instrumentSupabaseClient,
141+
instrumentMistralClient,
140142
instrumentOpenAiClient,
141143
instrumentAnthropicAiClient,
142144
instrumentGoogleGenAIClient,

‎packages/vercel-edge/src/index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export { trpcMiddleware, wrapMcpServerWithSentry } from '@sentry/core/server';
105105
export {
106106
openTelemetryIntegration,
107107
getOtlpTracesEndpoint,
108+
instrumentMistralClient,
108109
instrumentOpenAiClient,
109110
instrumentAnthropicAiClient,
110111
instrumentGoogleGenAIClient,

0 commit comments

Comments
 (0)