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
Collect which layer was used for invocation #1031
Conversation
👍 would be another good thing to include in the 1.3.0 release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good idea. Thank you!
Seems like a good idea but wouldn't it be simpler and more accurate to send the php version at the same time rather than relying on packagist and crossing data? |
Awesome, this will help get a better vision of which runtimes are used the most. This is helpful for Bref's own development, but also when talking with AWS. For PHP versions, it's a "nice to have" but much less important than layers, because we can retrieve that information from somewhere else (https://packagist.org/packages/bref/bref/php-stats). I don't want to block that improvement. Thanks Marco! |
@mnapoli this was non-BC change for those using php-runtime. But I see @Nyholm already fixing this. Can I hope for the soon release?
|
@chekalsky |
I made a release on runtime/bref just a few minutes ago. @deleugpn is correct. The |
@deleugpn sorry, didn't meant that. Yes, would be great to mitigate possibility of this potential issue in the future. |
This Pull Request introduces a new StatsD metric to analyse Bref usage among different layers. One open question before merging is whether we want to collect PHP Version in use. My initial idea is that we can follow Composer installation stats to see php version usage trend, which makes the layer the most important informmation to extract from Bref.
Since LambdaRuntime is an internal and final class, we won't consider this a breaking change.