Skip to content

Commit e93d819

Browse files
andreiborzaclaude
andcommitted
Bump limits for gen_ai span v2 extraction
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f01e804 commit e93d819

3 files changed

Lines changed: 37 additions & 47 deletions

File tree

.size-limit.js

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = [
88
path: 'packages/browser/build/npm/esm/prod/index.js',
99
import: createImport('init'),
1010
gzip: true,
11-
limit: '26 KB',
11+
limit: '27 KB',
1212
},
1313
{
1414
name: '@sentry/browser - with treeshaking flags',
@@ -38,7 +38,7 @@ module.exports = [
3838
path: 'packages/browser/build/npm/esm/prod/index.js',
3939
import: createImport('init', 'browserTracingIntegration'),
4040
gzip: true,
41-
limit: '44 KB',
41+
limit: '45 KB',
4242
},
4343
{
4444
name: '@sentry/browser (incl. Tracing + Span Streaming)',
@@ -52,14 +52,14 @@ module.exports = [
5252
path: 'packages/browser/build/npm/esm/prod/index.js',
5353
import: createImport('init', 'browserTracingIntegration', 'browserProfilingIntegration'),
5454
gzip: true,
55-
limit: '49 KB',
55+
limit: '50 KB',
5656
},
5757
{
5858
name: '@sentry/browser (incl. Tracing, Replay)',
5959
path: 'packages/browser/build/npm/esm/prod/index.js',
6060
import: createImport('init', 'browserTracingIntegration', 'replayIntegration'),
6161
gzip: true,
62-
limit: '83 KB',
62+
limit: '84 KB',
6363
},
6464
{
6565
name: '@sentry/browser (incl. Tracing, Replay) - with treeshaking flags',
@@ -89,21 +89,21 @@ module.exports = [
8989
path: 'packages/browser/build/npm/esm/prod/index.js',
9090
import: createImport('init', 'browserTracingIntegration', 'replayIntegration', 'replayCanvasIntegration'),
9191
gzip: true,
92-
limit: '88 KB',
92+
limit: '89 KB',
9393
},
9494
{
9595
name: '@sentry/browser (incl. Tracing, Replay, Feedback)',
9696
path: 'packages/browser/build/npm/esm/prod/index.js',
9797
import: createImport('init', 'browserTracingIntegration', 'replayIntegration', 'feedbackIntegration'),
9898
gzip: true,
99-
limit: '100 KB',
99+
limit: '101 KB',
100100
},
101101
{
102102
name: '@sentry/browser (incl. Feedback)',
103103
path: 'packages/browser/build/npm/esm/prod/index.js',
104104
import: createImport('init', 'feedbackIntegration'),
105105
gzip: true,
106-
limit: '43 KB',
106+
limit: '44 KB',
107107
},
108108
{
109109
name: '@sentry/browser (incl. sendFeedback)',
@@ -117,7 +117,7 @@ module.exports = [
117117
path: 'packages/browser/build/npm/esm/prod/index.js',
118118
import: createImport('init', 'feedbackAsyncIntegration'),
119119
gzip: true,
120-
limit: '36 KB',
120+
limit: '37 KB',
121121
},
122122
{
123123
name: '@sentry/browser (incl. Metrics)',
@@ -138,7 +138,7 @@ module.exports = [
138138
path: 'packages/browser/build/npm/esm/prod/index.js',
139139
import: createImport('init', 'metrics', 'logger'),
140140
gzip: true,
141-
limit: '28 KB',
141+
limit: '29 KB',
142142
},
143143
// React SDK (ESM)
144144
{
@@ -147,7 +147,7 @@ module.exports = [
147147
import: createImport('init', 'ErrorBoundary'),
148148
ignore: ['react/jsx-runtime'],
149149
gzip: true,
150-
limit: '28 KB',
150+
limit: '29 KB',
151151
},
152152
{
153153
name: '@sentry/react (incl. Tracing)',
@@ -163,22 +163,22 @@ module.exports = [
163163
path: 'packages/vue/build/esm/index.js',
164164
import: createImport('init'),
165165
gzip: true,
166-
limit: '31 KB',
166+
limit: '32 KB',
167167
},
168168
{
169169
name: '@sentry/vue (incl. Tracing)',
170170
path: 'packages/vue/build/esm/index.js',
171171
import: createImport('init', 'browserTracingIntegration'),
172172
gzip: true,
173-
limit: '46 KB',
173+
limit: '47 KB',
174174
},
175175
// Svelte SDK (ESM)
176176
{
177177
name: '@sentry/svelte',
178178
path: 'packages/svelte/build/esm/index.js',
179179
import: createImport('init'),
180180
gzip: true,
181-
limit: '26 KB',
181+
limit: '27 KB',
182182
},
183183
// Browser CDN bundles
184184
{
@@ -191,25 +191,25 @@ module.exports = [
191191
name: 'CDN Bundle (incl. Tracing)',
192192
path: createCDNPath('bundle.tracing.min.js'),
193193
gzip: true,
194-
limit: '45 KB',
194+
limit: '46 KB',
195195
},
196196
{
197197
name: 'CDN Bundle (incl. Logs, Metrics)',
198198
path: createCDNPath('bundle.logs.metrics.min.js'),
199199
gzip: true,
200-
limit: '30 KB',
200+
limit: '31 KB',
201201
},
202202
{
203203
name: 'CDN Bundle (incl. Tracing, Logs, Metrics)',
204204
path: createCDNPath('bundle.tracing.logs.metrics.min.js'),
205205
gzip: true,
206-
limit: '46 KB',
206+
limit: '47 KB',
207207
},
208208
{
209209
name: 'CDN Bundle (incl. Replay, Logs, Metrics)',
210210
path: createCDNPath('bundle.replay.logs.metrics.min.js'),
211211
gzip: true,
212-
limit: '69 KB',
212+
limit: '70 KB',
213213
},
214214
{
215215
name: 'CDN Bundle (incl. Tracing, Replay)',
@@ -221,7 +221,7 @@ module.exports = [
221221
name: 'CDN Bundle (incl. Tracing, Replay, Logs, Metrics)',
222222
path: createCDNPath('bundle.tracing.replay.logs.metrics.min.js'),
223223
gzip: true,
224-
limit: '83 KB',
224+
limit: '84 KB',
225225
},
226226
{
227227
name: 'CDN Bundle (incl. Tracing, Replay, Feedback)',
@@ -241,7 +241,7 @@ module.exports = [
241241
path: createCDNPath('bundle.min.js'),
242242
gzip: false,
243243
brotli: false,
244-
limit: '84 KB',
244+
limit: '85 KB',
245245
},
246246
{
247247
name: 'CDN Bundle (incl. Tracing) - uncompressed',
@@ -255,14 +255,14 @@ module.exports = [
255255
path: createCDNPath('bundle.logs.metrics.min.js'),
256256
gzip: false,
257257
brotli: false,
258-
limit: '88 KB',
258+
limit: '89 KB',
259259
},
260260
{
261261
name: 'CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed',
262262
path: createCDNPath('bundle.tracing.logs.metrics.min.js'),
263263
gzip: false,
264264
brotli: false,
265-
limit: '138 KB',
265+
limit: '139 KB',
266266
},
267267
{
268268
name: 'CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed',
@@ -276,28 +276,28 @@ module.exports = [
276276
path: createCDNPath('bundle.tracing.replay.min.js'),
277277
gzip: false,
278278
brotli: false,
279-
limit: '252 KB',
279+
limit: '253 KB',
280280
},
281281
{
282282
name: 'CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed',
283283
path: createCDNPath('bundle.tracing.replay.logs.metrics.min.js'),
284284
gzip: false,
285285
brotli: false,
286-
limit: '255 KB',
286+
limit: '256 KB',
287287
},
288288
{
289289
name: 'CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed',
290290
path: createCDNPath('bundle.tracing.replay.feedback.min.js'),
291291
gzip: false,
292292
brotli: false,
293-
limit: '265 KB',
293+
limit: '266 KB',
294294
},
295295
{
296296
name: 'CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed',
297297
path: createCDNPath('bundle.tracing.replay.feedback.logs.metrics.min.js'),
298298
gzip: false,
299299
brotli: false,
300-
limit: '268 KB',
300+
limit: '269 KB',
301301
},
302302
// Next.js SDK (ESM)
303303
{

dev-packages/cloudflare-integration-tests/suites/tracing/openai/test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,14 @@ it('traces a basic chat completion request', async ({ signal }) => {
4242
expect(firstSpan!.attributes[GEN_AI_SYSTEM_ATTRIBUTE]).toEqual({ type: 'string', value: 'openai' });
4343
expect(firstSpan!.attributes[GEN_AI_REQUEST_MODEL_ATTRIBUTE]).toEqual({ type: 'string', value: 'gpt-3.5-turbo' });
4444
expect(firstSpan!.attributes[GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]).toEqual({ type: 'double', value: 0.7 });
45-
expect(firstSpan!.attributes[GEN_AI_RESPONSE_MODEL_ATTRIBUTE]).toEqual({ type: 'string', value: 'gpt-3.5-turbo' });
46-
expect(firstSpan!.attributes[GEN_AI_RESPONSE_ID_ATTRIBUTE]).toEqual({ type: 'string', value: 'chatcmpl-mock123' });
45+
expect(firstSpan!.attributes[GEN_AI_RESPONSE_MODEL_ATTRIBUTE]).toEqual({
46+
type: 'string',
47+
value: 'gpt-3.5-turbo',
48+
});
49+
expect(firstSpan!.attributes[GEN_AI_RESPONSE_ID_ATTRIBUTE]).toEqual({
50+
type: 'string',
51+
value: 'chatcmpl-mock123',
52+
});
4753
expect(firstSpan!.attributes[GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]).toEqual({ type: 'integer', value: 10 });
4854
expect(firstSpan!.attributes[GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]).toEqual({ type: 'integer', value: 15 });
4955
expect(firstSpan!.attributes[GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]).toEqual({ type: 'integer', value: 25 });

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

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -481,16 +481,8 @@ describe('LangChain integration', () => {
481481
.expect({
482482
span: container => {
483483
expect(container.items).toHaveLength(8);
484-
const [
485-
firstSpan,
486-
secondSpan,
487-
thirdSpan,
488-
fourthSpan,
489-
fifthSpan,
490-
sixthSpan,
491-
seventhSpan,
492-
eighthSpan,
493-
] = container.items;
484+
const [firstSpan, secondSpan, thirdSpan, fourthSpan, fifthSpan, sixthSpan, seventhSpan, eighthSpan] =
485+
container.items;
494486

495487
// [0] express middleware — query
496488
expect(firstSpan!.name).toBe('query');
@@ -540,16 +532,8 @@ describe('LangChain integration', () => {
540532
.expect({
541533
span: container => {
542534
expect(container.items).toHaveLength(8);
543-
const [
544-
firstSpan,
545-
secondSpan,
546-
thirdSpan,
547-
fourthSpan,
548-
fifthSpan,
549-
sixthSpan,
550-
seventhSpan,
551-
eighthSpan,
552-
] = container.items;
535+
const [firstSpan, secondSpan, thirdSpan, fourthSpan, fifthSpan, sixthSpan, seventhSpan, eighthSpan] =
536+
container.items;
553537

554538
// [0] express middleware — query
555539
expect(firstSpan!.name).toBe('query');

0 commit comments

Comments
 (0)