-
Notifications
You must be signed in to change notification settings - Fork 487
Description
Feature request
Hello, I am currently enjoying rewriting some partials et. al. as components. However, when checking on performance and optimizing, I miss the ability that you have with partials to see the render time of the individual partial in the server output. I see that instrumentation was recently implemented which I believe is a prerequisite for this. After enabling instrumentation in configurations, I was thinking that magically I would start to see render times in the logs, but after looking at the instrumentation framework briefly I understand that that is only something that instrumentation could enable, not something that it does out of the box.
Motivation
I am hoping that we could work towards enabling the logging of render times as a configuration setting, or otherwise demonstrate how to do this on the instrumentation page of the view component documentation. After a brief amount of time I was unable to see how to use instrumentation to log render times (I didn't try that hard) but if it is simple enough I think that would be worth adding to the documentation. Also, I understand that some shops are using view component for literally everything and that by default this would not be necessarily a desirable default behavior as it would pollute logs, but I think it should be something that can easily be toggled on when working on optimization.