Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced capabilities for Azure Monitor metrics for functions #172

Open
kanupriya15025 opened this issue Oct 18, 2023 · 1 comment
Open
Labels
Enhancement New feature or request Observability Trouble seeing app health or how functions run. P2 Priority 2

Comments

@kanupriya15025
Copy link

kanupriya15025 commented Oct 18, 2023

Today, durable framework provides good metrics to see the load on the clusters on Azure Monitor. Eg. how many instances for a specific function are in failed/successful state.
But sometimes we need more than just these counts. Eg, each of these functions are triggered with some context, like this for triggered for which clientId, orgId etc. Now, these can be tags for the uber level failed/successful orchestrator/activity function.

I wanted to check if such an enhancement request could be catered to. I could think of a way like this :

@FunctionName("WorkflowOrchestrator")
@Labels [(clientId = ""), (technicalAccountId = ""), (orgId = "")]
public ObjectNode workflowOrchestrator(@DurableOrchestrationTrigger(name = "runtimeState") TaskOrchestrationContext ctx)

We could have a Labels annotation with a list of custom tags that could be added at the time of calling the function or be as a part of the context. And these could then be propagated as tags on Azure Monitor.

@kanupriya15025 kanupriya15025 changed the title Enhanced capabilities for Azure metrics for functions Enhanced capabilities for Azure Monitor metrics for functions Oct 18, 2023
@cgillum
Copy link
Member

cgillum commented Oct 18, 2023

The underlying Durable Task Framework and the Azure Storage backend do both support custom "tags" for orchestrations today. We haven't yet done the work to expose this feature to Durable Functions yet, or to all the storage backends. I think this is a good thing for us to consider though, and it makes sense to consider including custom tags in the telemetry that gets published to Azure Monitor / Application Insights.

@kaibocai kaibocai added Enhancement New feature or request and removed Needs: Triage 🔍 labels Oct 19, 2023
@lilyjma lilyjma added Observability Trouble seeing app health or how functions run. P2 Priority 2 labels Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Observability Trouble seeing app health or how functions run. P2 Priority 2
Projects
None yet
Development

No branches or pull requests

4 participants