Skip to content

Commit 83f8370

Browse files
authored
Add the workflow_type tag to the Activity metrics (#5117)
1 parent 239b093 commit 83f8370

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

docs/references/sdk-metrics.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ An Activity Execution was canceled.
139139

140140
- Type: Counter
141141
- Available in: Java
142-
- Tags: `activity_type`, `namespace`, `task_queue`
142+
- Tags: `activity_type`, `namespace`, `task_queue`, `workflow_type`
143143

144144
### `activity_execution_failed`
145145

@@ -148,15 +148,15 @@ This does not include local Activity Failures in the Go and Java SDKs (see [loca
148148

149149
- Type: Counter
150150
- Available in: Core, Go, Java
151-
- Tags: `activity_type`, `namespace`, `task_queue`
151+
- Tags: `activity_type`, `namespace`, `task_queue`, `workflow_type`
152152

153153
### `activity_execution_latency`
154154

155155
Time to complete an Activity Execution, from the time the Activity Task is generated to the time the language SDK responded with a completion (failure or success).
156156

157157
- Type: Histogram
158158
- Available in: Core, Go, Java
159-
- Tags: `activity_type`, `namespace`, `task_queue`
159+
- Tags: `activity_type`, `namespace`, `task_queue`, `workflow_type`
160160

161161
### `activity_poll_no_task`
162162

@@ -171,7 +171,7 @@ An Activity Worker poll for an Activity Task timed out, and no Activity Task is
171171
The Schedule-To-Start time of an Activity Task.
172172
A [Schedule-To-Start Timeout](/encyclopedia/detecting-activity-failures#schedule-to-start-timeout) can be set when an Activity Execution is spawned.
173173
Use this metric to check that Activity Tasks are being processed from the queue in a timely manner.
174-
Some SDKs include the `activity_type` tag, but the metric should not vary by type, because the type does not influence the rate at which tasks are pulled from the queue.
174+
Some SDKs include the `activity_type` and `workflow_type` tags, but the metric should not vary by type, because the type does not influence the rate at which tasks are pulled from the queue.
175175

176176
- Type: Histogram
177177
- Available in: Core, Go, Java
@@ -184,7 +184,7 @@ This metric is not recorded for async Activity completion.
184184

185185
- Type: Histogram
186186
- Available in: Core, Go, Java
187-
- Tags: `activity_type`, `namespace`, `task_queue`
187+
- Tags: `activity_type`, `namespace`, `task_queue`, `workflow_type`
188188

189189
### `activity_task_error`
190190

@@ -208,39 +208,39 @@ A Local Activity Execution was canceled.
208208

209209
- Type: Counter
210210
- Available in: Core, Go, Java
211-
- Tags: `activity_type`, `namespace`, `task_queue`
211+
- Tags: `activity_type`, `namespace`, `task_queue`, `workflow_type`
212212

213213
### `local_activity_execution_failed`
214214

215215
A Local Activity Execution failed.
216216

217217
- Type: Counter
218218
- Available in: Core, Go, Java
219-
- Tags: `activity_type`, `namespace`, `task_queue`
219+
- Tags: `activity_type`, `namespace`, `task_queue`, `workflow_type`
220220

221221
### `local_activity_execution_latency`
222222

223223
Time to complete a Local Activity Execution, from the time the first Activity Task is generated to the time the SDK responds that the execution is complete.
224224

225225
- Type: Histogram
226226
- Available in: Core, Go, Java
227-
- Tags: `activity_type`, `namespace`, `task_queue`
227+
- Tags: `activity_type`, `namespace`, `task_queue`, `workflow_type`
228228

229229
### `local_activity_succeed_endtoend_latency`
230230

231231
Total latency of successfully finished Local Activity Executions (from schedule to completion).
232232

233233
- Type: Histogram
234234
- Available in: Core, Go, Java
235-
- Tags: `activity_type`, `namespace`, `task_queue`
235+
- Tags: `activity_type`, `namespace`, `task_queue`, `workflow_type`
236236

237237
### `local_activity_total`
238238

239239
Total number of [Local Activity Executions](/local-activity).
240240

241241
- Type: Counter
242242
- Available in: Core, Go, Java
243-
- Tags: `activity_type`, `namespace`, `task_queue`
243+
- Tags: `activity_type`, `namespace`, `task_queue`, `workflow_type`
244244

245245
### `long_request`
246246

0 commit comments

Comments
 (0)