Skip to content
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

Service inject initiator #278

Open
janbarasek opened this issue Feb 3, 2022 · 0 comments
Open

Service inject initiator #278

janbarasek opened this issue Feb 3, 2022 · 0 comments

Comments

@janbarasek
Copy link
Contributor

Very often I need to find out which service caused another service to load.

For example, I call a request where a lot of services are injected that won't be needed in the end. In a complex application, it is hard to discover the exact reason why a service was instantiated.

I suggest adding a switch to the configuration to enable path tracing of how services were instantiated, for better debug. The information could be displayed directly in the Tracy panel.

Now the path can be found out by throwing an exception, for example:

Snímek obrazovky 2022-02-03 v 11 42 55

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant