As I understand it, instrument code can be written either in WikimediaEvents or in the product codebase.
To do: Clarify when developers should write instrument code in one location verses the other in https://wikitech.wikimedia.org/wiki/Metrics_Platform/Create_an_instrument#Code_the_instrument