Azure / azure-service-bus-dotnet

☁️ .NET Standard client library for Azure Service Bus
https://azure.microsoft.com/services/service-bus
Other
235 stars 120 forks source link

Failed AcceptMessageSession dependency in AppInsight every 2 minutes #588

Open oletolshave opened 6 years ago

oletolshave commented 6 years ago

Actual Behavior

  1. Ensure AppInisight is configured and dependency tracking is enabled.
  2. Construct a SubscriptionClient for a topic with sessions enabled.
  3. Call RegisterSessionHandler on the client.
  4. (When nothing is published on the topic): every 2 minutes (at least close to that) an "AcceptMessageSession" dependency with "Dependency call status" as False is logged in AppInsight.

Expected Behavior

  1. When nothing is published there should not be anything logged in AppInsight. Or at least it should not log a failed dependency.

Versions

Comments: Using RegisterMessageHandler instead of RegisterSessionHandler also causes a dependency "Receive" to be logged every 1 minute, but this has a status of True, which is much less noisy in AppInsight.

oletolshave commented 6 years ago

ServiceBusIssue.zip

oletolshave commented 6 years ago

Added example to solution to reproduce (requires an Azure subscription with an AppInsights instrumentation key, a service bus topic and a subscription for that topic).