简体   繁体   English

Azure 服务总线连接

[英]Azure Service Bus Connections

I have inherited an azure service bus solution - C#, Web Api with Singleton service implementing the queue. I have inherited an azure service bus solution - C#, Web Api with Singleton service implementing the queue. Running locally on my PC, I can publish a message to my Dev queue and see that event consumed by my service bus receiver.在我的 PC 上本地运行,我可以将消息发布到我的开发队列并查看我的服务总线接收器使用的事件。 No problem.没问题。 In our staging environment however my receiver is not firing so my code never processes the messages.但是,在我们的暂存环境中,我的接收器没有触发,因此我的代码从不处理消息。 I found an instance where a different environment was pointing to the staging queue purely by luck which makes me think "what else is using this queue".我发现一个实例,其中一个不同的环境完全靠运气指向暂存队列,这让我想到“还有什么在使用这个队列”。 We have no application logging (useless I know) of when events are published or consumed so I wondered, is there a way from within Azure to see either我们没有关于何时发布或使用事件的应用程序日志记录(我知道没用)所以我想知道,有没有办法从 Azure 中查看

  1. What is consuming the events published to the queue, or什么正在消耗发布到队列的事件,或者
  2. What is currently connected to the queue so I can validate each connection and make sure a dev in a far flung office isn't running test programs using the queue.当前连接到队列的内容,因此我可以验证每个连接并确保远程办公室的开发人员没有使用队列运行测试程序。

Thanks谢谢

  1. Create application insights instance创建应用洞察实例
  2. Connect your web app in azure to the created AI azure 中的 web 应用程序连接到创建的 AI
  3. after some time you will be able to see requests to other systems sent by your app (in application map you'll see fancy diagram of requests, in logs you can query requests to service bus)一段时间后,您将能够看到您的应用程序向其他系统发送的请求(在应用程序 map中,您会看到精美的请求图,在日志中您可以查询对服务总线的请求)
  4. Drop the AI instance if you don't need it anymore如果不再需要 AI 实例,请删除它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM