ArkStyx / udemy-spring-5-guru-pet-clinic

SFG Pet Clinic
0 stars 0 forks source link

Add Git Build Info To Spring Boot Actuator #91

Open ArkStyx opened 1 year ago

ArkStyx commented 1 year ago

Here's a task to add the Git build information to Spring Boot Actuator. This is a really nice feature where we can add to git commit information so that will get put into a properties file and then when the artifact is deployed you can go to Spring Boot Actuator endpoint and see what is running. So this is real nice thing to do. I like to do it in production. Very very handy to do. Again in inside of production or actually anything that you've deployed. Doesn't matter if it's up to like a QA system or UAT system or something. It's very handy where you think version whatever is running, be able to go into an endpoint of the running application say that yes this is definitively what is running because you do see some weird stuff happening where you think hey I've already fixed this and you start looking at it and go wait a second, what's actually running here? And sometimes you will actually find that you've already fixed something but the artifact did not get deployed properly. So a very very handy thing to have is this build information on a Spring Boot Actuator Endpoint. I'll show you how to do that coming up in the course.