Skip to content

Commit a4ce1cd

Browse files
committed
bump size-limit
1 parent fbd9dbe commit a4ce1cd

File tree

2 files changed

+2
-43
lines changed

2 files changed

+2
-43
lines changed

.size-limit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = [
5454
path: 'packages/browser/build/npm/esm/index.js',
5555
import: createImport('init', 'browserTracingIntegration', 'replayIntegration'),
5656
gzip: true,
57-
limit: '70 KB',
57+
limit: '71 KB',
5858
modifyWebpackConfig: function (config) {
5959
const webpack = require('webpack');
6060
const TerserPlugin = require('terser-webpack-plugin');
@@ -139,7 +139,7 @@ module.exports = [
139139
path: 'packages/vue/build/esm/index.js',
140140
import: createImport('init', 'browserTracingIntegration'),
141141
gzip: true,
142-
limit: '40 KB',
142+
limit: '41 KB',
143143
},
144144
// Svelte SDK (ESM)
145145
{

packages/browser-utils/test/browser/browserMetrics.test.ts

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -239,47 +239,6 @@ describe('_addMeasureSpans', () => {
239239
expect(spanData['sentry.browser.measure.detail.callback']).toBe(JSON.stringify(detail.callback));
240240
});
241241

242-
it('handles errors in detail processing gracefully', () => {
243-
const spans: Span[] = [];
244-
245-
getClient()?.on('spanEnd', span => {
246-
spans.push(span);
247-
});
248-
249-
// Create an entry with a detail that will cause an error when processed
250-
const entry = {
251-
entryType: 'measure',
252-
name: 'measure-1',
253-
duration: 10,
254-
startTime: 12,
255-
get detail() {
256-
throw new Error('Test error');
257-
},
258-
} as PerformanceMeasure;
259-
260-
const timeOrigin = 100;
261-
const startTime = 23;
262-
const duration = 356;
263-
264-
// Should not throw
265-
_addMeasureSpans(span, entry, startTime, duration, timeOrigin);
266-
267-
expect(spans).toHaveLength(1);
268-
expect(spanToJSON(spans[0]!)).toEqual(
269-
expect.objectContaining({
270-
description: 'measure-1',
271-
start_timestamp: timeOrigin + startTime,
272-
timestamp: timeOrigin + startTime + duration,
273-
op: 'measure',
274-
origin: 'auto.resource.browser.metrics',
275-
data: {
276-
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'measure',
277-
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.resource.browser.metrics',
278-
},
279-
}),
280-
);
281-
});
282-
283242
it('handles errors in object detail value stringification', () => {
284243
const spans: Span[] = [];
285244

0 commit comments

Comments
 (0)