-
Notifications
You must be signed in to change notification settings - Fork 67
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
va-link, etc. don't provide innerText, cause issues with recording actions in Datadog #3001
Comments
Hey team! Please add your planning poker estimate with Zenhub @Andrew565 @ataker @harshil1793 @it-harrison @jamigibbs @micahchiang @nickjg231 @powellkerry @rmessina1010 @rsmithadhoc |
Wrote introtext when I meant |
@dcloud - Thanks for raising this. I think Instead, adding a datadog ID to the internals of the components you need may be a way forward similar to this pull request - https://github.com/department-of-veterans-affairs/component-library/pull/936/files |
@micahchiang Thanks for the explanation, that makes sense from a technical viewpoint. I think people would expect a That said, having looked at how datadog searches for action names, having VADS components automatically set the |
@caw310, do you think this is something your team will prioritize? |
We will add this to our backlog but not sure exactly when we will get to this. |
Bug Report or Design System update
What happened
Datadog is recording unexpected or unhelpful action names for clicks on VADS web components.
While investigating issues with Datadog, I noticed that two VADS web components,
va-link
andva-alert-expandable
, provide empty strings forelement.innerText
orelement.textContent
, so DDG goes up the DOM tree looking for something that can provide an action name.Adding a
data-dd-action-name
might fix this given Datadog can find that attribute if set on a web component, but that would require every engineer to add this attribute tova-link
to get the expected "out-of-the-box" behavior forelement.innerText
.What I expected to happen
I expected a
va-link
clicks to record the link text like a normala
would.Reproducing
Steps to reproduce:
OR
va-link
element in console, runelement.innerText
and see that it returns an empty string.Urgency
How urgent is this request? Please select the appropriate option below and/or provide details
Details
I have some notes in department-of-veterans-affairs/va.gov-team#87625 from looking at how Datadog RUM looks for action names.
Originally created department-of-veterans-affairs/va.gov-team#88060 due to looking at that repo's "Create Issue" templates first.
The text was updated successfully, but these errors were encountered: