Problem
When integrating Dynatrace with Azure Functions, you might notice that only the Invoke call appears in the distributed trace. If you’re wondering why there are no further outgoing calls displayed under Invoke, this guide is for you.
Explanation
This behavior is expected. The Dynatrace packages provide instrumentation only for incoming Azure Functions calls. To capture outgoing requests, whether to a database, a service, or another entity, you need to use the appropriate OpenTelemetry instrumentations.
Resolution
Here are the steps to implement OpenTelemetry instrumentation for different programming languages:
- For .NET : Trace Azure Functions written in .NET
- For Node.js : Trace Azure Functions written in Node.js
- For Python : Trace Azure Functions written in Python
Since there are various options for hosting your functions, if a specific scenario is not covered, you can refer to the comprehensive guide on Distributed Tracing for Azure Functions
What’s next
If your OpenTelemetry instrumentation is not working as expected, please review the limitations specific to each technology. If the issue persists, you can engage Dynatrace support for further assistance.