question

VinuthaBn-5970 avatar image
0 Votes"
VinuthaBn-5970 asked VinuthaBn-5970 commented

data-model-dependency-telemetry does not support type: "ServiceBus"

My application is a micro-service architecture based Node JS application.
Using Azure SB SDK & AppInsights SDK to monitor.

Application 1 sends messages to Application 2 via Service Bus, there is no dependency tracking like mongoDB, HTTP.

Neither operation ID is being tracked to understand the Application 1 --> ServiceBus --> Application 2

azure-monitorazure-service-bus
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Vinutha,

App Insights should be able to track your Service Bus calls. Could you please share a little more info to see if I can help you track down the problem?

  • Are you using the latest App Insights SDK, or what version are you currently using?

  • Are the service bus dependency calls being logged at all, or is it just that the operation ID isn't being picked up in the App 2 telemetry?

  • What is the load order for the SDKs? It's extremely important to load App Insights before Service Bus.


0 Votes 0 ·
VinuthaBN-6371 avatar image
0 Votes"
VinuthaBN-6371 answered

@SamaraSoucy-MSFT

"@azure/service-bus": "7.1.0",
"applicationinsights": "^2.1.4",

Even with this, i do not see the service bus dependency type
120999-image.png



image.png (26.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

VinuthaBn-5970 avatar image
0 Votes"
VinuthaBn-5970 answered VinuthaBn-5970 commented

@SamaraSoucy-MSFT

Are you using the latest App Insights SDK, or what version are you currently using? - npm V 1.6.0

Are the service bus dependency calls being logged at all, or is it just that the operation ID isn't being picked up in the App 2 telemetry? - Service Bus dependency calls are not logged at all

What is the load order for the SDKs? It's extremely important to load App Insights before Service Bus - Logger is loaded before service bus





· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @VinuthaBn-5970

I wanted to give you an update. From what I can tell, you might need to update your App Insights SDK, but other than that it should automatically log the dependency. I am having some trouble getting it to work myself, so I've reached out to the product team to work on getting a functional sample for you.

1 Vote 1 ·

@SamaraSoucy-MSFT
I have updated the appInsights.
Waiting for PR approval to test it.
Will update soon

0 Votes 0 ·

I got a response from the product team- there is a known issue with the SDK and some of the other newer Azure node packages not tracking properly. If you are using an older version of the Service Bus SDK you may not have hit this one and updating past 1.8 may have worked for you. The fix for the latest Azure packages went out yesterday, version 2.1.4. I hope that isn't too confusing- essentially 2.1.4 should work with any version of the Service Bus package, but you may be fine with 1.8+ if your service bus package is not updated to the latest version.

0 Votes 0 ·