How to set Cloud Rolename in Distributed Tracing V2 for Durable Functions

Harold José Álvarez Chelala 0 Reputation points
2024-11-08T00:15:55.6533333+00:00

I'm using Azure Durable Functions in node and for observability I added Distributed Tracking V2 by this article https://techcommunity.microsoft.com/blog/appsonazureblog/preview-of-distributed-tracing-v2-for-durable-functions/4039050

Is generating all right and I can explore it in the Azure Application Insights resource but under no cloud rolename.

What I want is to be able to set the Acloud Rolename so Azure Application Insights shows the information grouped. I already set "WEBSITE_CLOUD_ROLENAME" and is used and working as expected for normal functions but not for durable ones

This is a snipped of host.json

...
 "extensions": {
    "durableTask": {
      "hubName": "%MyTaskHub%",
      "tracing": {
        "DistributedTracingEnabled": true,
        "Version": "V2"
      }
    }
  }
...

regards and thanks

Harold J. A. Chelala

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,190 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.