Closed mitsuhiko closed 6 years ago
Hi there. For complex UI, the click breadcrumbs don't have enough detail - can you not include the XPATH of the element that is clicked? Otherwise its sometimes not possible to work out which element was clicked.
Running into this myself, we'd love to be able to add the ember component name, or input HTML name to the breadcrumb.
What about leaving the default and exposing a config somewhere?
These would all give us the power.
captureBreadcrumb
funcation as an extra param.this._lastCapturedEvent
globallyhtmlTreeAsString
as an overwritable method/configI'd like to chime in here as well. Instead of adding Angular or Ember or whatever framework specific data, I would prefer a custom tag, e.g. data-sentry-id="Some text here"
which would give us the most control over how to identify certain elements. The classnames currently don't give us any useful information, and we don't use ID's for elements. Adding ng-
stuff won't help either because there's so much of it in the codebase.
I'll close this one for now, as we're aware of this missing piece and we'll be revisiting how this thing is working in the next major version.
Ref: https://github.com/getsentry/raven-js/issues/783 Ref: https://github.com/getsentry/raven-js/issues/577
Current rendering:
For angular and others it would be nice to include some attributes like
ng-click
and friends:Originally reported here: https://github.com/getsentry/sentry/issues/3220