-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(utils): Prioritize Component name attributes over HTML Tree String #9496
Changes from all commits
8be4955
63bce61
c935be1
2b5f2de
cbda225
f48b3c7
cac7d82
431603f
2259dae
616a37f
a37035c
8fedecc
cc74458
c35331c
e8e37a9
6db53ea
96263f2
a8c8096
fc3a7ce
7c8f6d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,8 @@ import type { | |
} from '@sentry/types/build/types/breadcrumb'; | ||
import { | ||
addInstrumentationHandler, | ||
getElementIdentifier, | ||
getEventDescription, | ||
htmlTreeAsString, | ||
logger, | ||
parseUrl, | ||
safeJoin, | ||
|
@@ -153,8 +153,8 @@ function _domBreadcrumb(dom: BreadcrumbsOptions['dom']): (handlerData: HandlerDa | |
try { | ||
const event = handlerData.event as Event | Node; | ||
target = _isEvent(event) | ||
? htmlTreeAsString(event.target, { keyAttrs, maxStringLength }) | ||
: htmlTreeAsString(event, { keyAttrs, maxStringLength }); | ||
? getElementIdentifier(event.target, { keyAttrs, maxStringLength }) | ||
: getElementIdentifier(event, { keyAttrs, maxStringLength }); | ||
Comment on lines
+156
to
+157
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right now, |
||
} catch (e) { | ||
target = '<unknown>'; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the long term plan for replays then? Don't we need this change for them also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AbhiPrasad Had to put replays aside for the sake of the experiment, but there are a few things we will need to include in the backend and SDK to support it. I'll have a document ready with more details later