It is a good practice to expose rich metadata, such as version numbers and feature descriptors, from any application component or artefact.
This is especially useful for microservice architectures in which monitoring plays a crucial role. It provides insights for testing, telemetry and ops teams to quickly see what code is running in which environment and to debug issues easily.