Skip to content

Commit c2e1043

Browse files
committed
.
1 parent ccc0c2c commit c2e1043

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.size-limit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ module.exports = [
297297
path: createCDNPath('bundle.tracing.replay.feedback.logs.metrics.min.js'),
298298
gzip: false,
299299
brotli: false,
300-
limit: '273 KB',
300+
limit: '273.5 KB',
301301
},
302302
// Next.js SDK (ESM)
303303
{

packages/core/src/tracing/spans/captureSpan.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,10 @@ function inferSpanDataFromOtelAttributes(spanJSON: StreamedSpanJSON, spanKind?:
186186
}
187187

188188
const dbSystem = attributes['db.system.name'] || attributes['db.system'];
189-
if (dbSystem) {
189+
const opIsCache =
190+
typeof attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP] === 'string' &&
191+
`${attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP]}`.startsWith('cache.');
192+
if (dbSystem && !opIsCache) {
190193
inferDbSpanData(spanJSON, attributes);
191194
return;
192195
}

0 commit comments

Comments
 (0)