Event 'metadata' 

Aims to solve #1834.

TODO:
- [ ] Document the new feature and provide some example use cases