-
-
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
Show href for <a> tags in breadcrumbs #3011
Comments
@kamilogorek @priscilawebdev @HazAT this sounds more like an SDK issue, am I right? |
Until we change this in the SDK, it can be achieved with: Sentry.init({
beforeBreadcrumb(breadcrumb, hint) {
if (breadcrumb.category === 'ui.click' && hint.event.target.href) {
breadcrumb.message += `[href=${hint.event.target.href}]`
}
return breadcrumb;
}
}) |
Transferring to sentry-javascript |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
The breadcrumb for
<a>
tags should also show thehref
contents to more easily identify which<a>
was clicked.Motivation
I have a footer with
<a>
links but the breadcrumb in Sentry shows something like this:div.flex.flex-wrap > div.column > a#contact
. I already added#contact
to identify it more easily but it would be nice if the href can be in there so I don't need to identify links manually.The text was updated successfully, but these errors were encountered: