Skip to content

Commit 320855b

Browse files
committed
fix tests
1 parent 0d9856e commit 320855b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/opentelemetry/src/utils/parseSpanDescription.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ export function parseSpanDescription(span: AbstractSpan): SpanDescription {
4848
const dbSystem = attributes[SEMATTRS_DB_SYSTEM];
4949
if (
5050
dbSystem &&
51-
typeof attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP] === 'string' &&
52-
!attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP].startsWith('cache.')
51+
(!attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP] ||
52+
(typeof attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP] === 'string' &&
53+
!attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP].startsWith('cache.')))
5354
) {
5455
return descriptionForDbSystem({ attributes, name });
5556
}

0 commit comments

Comments
 (0)