Missing metrics breakdown when using Coinbase SDK + Temporal Cloud + Datadog integration

We’re using Coinbase SDK (waiting for the official Ruby-SDK to become stable) along with managed Temporal cloud instance, and recently we’ve enabled the Datadog intergration to monitor our workflow execution activity.
We noticed that all workflow related stats, e.g. temporal.cloud.v0_workflow_failed arrive to DD with a workflowtype tag (dimension) which is automatically set to the value _tag_excluded.

I’ve been looking for a way to set this value from the application to allow a workflow based granularity, but I can’t seem to find where it belongs…
SDK doesn’t seem to give any support for this, and the integration also doesn’t provide any related configuration options.

Looking forward to your advice :folded_hands:

Coinbase SDK

If it is Coinbase-SDK specific, may be able to ask in the #coinbase-ruby-sdk channel on Slack.

I’ve been looking for a way to set this value from the application to allow a workflow based granularity, but I can’t seem to find where it belongs…

Which metric specifically are you looking to see workflow_type on? Is it an SDK metric?

Thanks for getting back to me on this @Chad_Retz .
I also just joined the Slack Workspace and will be sharing this thread there as well if necessary.

I kind of used the Datadog integration off the shelf, so I’m not sure what does “SDK metric” relates to. here’s a screenshot from my DD instance, hope it helps:

Essentially I want to be able to break it down to Workflow granularity so I can track the health of each and every workflow separately.

Ah, the temporal.cloud.v0_workflow_failed is a server-side cloud metric and is unrelated to which SDK you are using. See Temporal Cloud metrics reference | Temporal Platform Documentation vs Temporal SDK metrics reference | Temporal Platform Documentation. I will defer to others/support here that may be able to help with cloud metrics.

Note, if you do use SDK-side/worker-side metrics, there is a temporal_workflow_failed that does contain the workflow_type. However, it won’t be affected by workflows that terminate (which includes timeouts and resets) because they never reach the worker. There are other ways to obtain which workflows failed, such as listing with a query looking for ones that failed.

1 Like

How would I enable this kind of metrics in my Coinbase integration? got any reference for this?

I am afraid I am not familiar with the Coinbase SDK or what metrics it has. May have to ask in the aforementioned Slack channel. That collection of SDK metrics at that link is only for official SDKs.

1 Like