Skip to content

Commit 258af36

Browse files
Integrate congyao/add-telemetry-for-action-name-diff (#3802) into staging-35
Integrated commit sha: 55397d5 Co-authored-by: cy-moi <[email protected]>
2 parents 1ddfd7b + 55397d5 commit 258af36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/rum-core/src/domain/action/getActionNameFromElement.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ function getTextualContent(
255255
userProgrammaticAttribute,
256256
privacyEnabledActionName
257257
)
258-
if (treeWalkerText !== text.replace(/\s+/g, ' ').trim()) {
259-
addTelemetryDebug('tree-walker-text-diff', { text, treeWalkerText })
258+
if (treeWalkerText.toLowerCase() !== text.replace(/\s+/g, ' ').trim().toLowerCase()) {
259+
addTelemetryDebug('tree-walker-text-diff', { text, treeWalkerText, selector: element.outerHTML })
260260
}
261261
return treeWalkerText
262262
}

0 commit comments

Comments
 (0)