I have 2 Web APIs in .NET Core which communicate between themselves sending events to an azure event grid topic. This event grid topic has 2 web hooks event subscriptions (one for each API) that do a HTTPS request to the other API whenever a event is send to the topic.
Also I have an Application Insight for logging and monitoring both APIs. I want to be able to relate the logs of both APIs. I know that this is done out of the box for HTTP requests between both APIs using a Request-Id
header. Is it possible to add such thing in the web hooks?
Or if not, is it possible to implement a custom middleware or filter to handle this?