-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
Allow to use custom UIViewController name when tracking breadcumbs #4642
Comments
@m1entus, your issue talks about breadcumbs but the code snipped refers to transactions. I guess that's a mistake? For breadcrumbs, you could maybe use |
@philipphofmann Sorry wrong code, but it is using the same methods which is Ideally for me to have: FIY: marking |
I like this idea. |
Problem Statement
I would love to be able to report custom controller name when sending breadcumbs. Unfortunately we are using modules and each of our feature module UIViewControleller is
ViewController
as a classFeature.ViewController
and seems it is always showingViewController
as a name in the panel. Ideally instead ofNSString *name = [SwiftDescriptor getObjectClassName:controller];
we could use some likeif ([controller conformsToProtocol:@protocol(ViewControllerBreadcrumbTracking)]
then use custom name instead ofgetObjectClassName
.Solution Brainstorm
Use
If viewController responds to
ViewControllerBreadcrumbTracking
then usescreenName
instead of[SwiftDescriptor getObjectClassName:controller]
Are you willing to submit a PR?
I could if we agree on solution.
The text was updated successfully, but these errors were encountered: