At this point, we have three websites, an open api, some ten services, and numerous other parts of our infrastructure; and they all can send statistic messages into the queue.
But, there is a problem, we would really like to know where the messages come from, as we had some issues in the past, where a statistic was logged when that shouldn't be possible.
For the websites is fairly easy, we can just insert the url into the queue message, and have a list of regexes to determine whether a message type is allowed for that url.
But how can we do this things in the other applications, that don't have an url? The messages are sometimes logged very deep in the infrastructure, stuff that can be used by all applications, so that's kind of difficult. Does anyone has any good suggestions?