We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d9856e commit 320855bCopy full SHA for 320855b
packages/opentelemetry/src/utils/parseSpanDescription.ts
@@ -48,8 +48,9 @@ export function parseSpanDescription(span: AbstractSpan): SpanDescription {
48
const dbSystem = attributes[SEMATTRS_DB_SYSTEM];
49
if (
50
dbSystem &&
51
- typeof attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP] === 'string' &&
52
- !attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP].startsWith('cache.')
+ (!attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP] ||
+ (typeof attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP] === 'string' &&
53
+ !attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP].startsWith('cache.')))
54
) {
55
return descriptionForDbSystem({ attributes, name });
56
}
0 commit comments