Commit a5b5b9f
authored
Include task payload in OTEL debug (temporalio#7174)
## What changed?
<!-- Describe what has changed in this PR -->
Include the task data in the OTEL span when OTEL debug is enabled.
## Why?
<!-- Tell your future self why have you made these changes -->
Help with debugging/learning the system.
## How did you test it?
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
Checked in Grafana.
Example:
```
"payload": {
"NamespaceID": "a9aac188-6188-41f0-b7de-16ef62cb7193",
"RunID": "0194af8c-df6d-7829-9c35-a88cc288da89",
"ScheduledEventID": 2,
"TaskID": 1048633,
"TaskQueue": "TestUpdateWorkflowSuite/TestUpdateWorkflow_CompleteWorkflow_AbortUpdates/update_admitted_workflow_completed_task_queue",
"Version": 0,
"VisibilityTimestamp": "2025-01-29T00:53:52.621907Z",
"WorkflowID": "TestUpdateWorkflowSuite/TestUpdateWorkflow_CompleteWorkflow_AbortUpdates/update_admitted_workflow_completed_workflow_id"
}
```
## Potential risks
<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->
Only enabled in debug mode.
## Documentation
<!-- Have you made sure this change doesn't falsify anything currently
stated in `docs/`? If significant
new behavior is added, have you described that in `docs/`? -->
## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->1 parent b01f22f commit a5b5b9f
1 file changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
286 | | - | |
| 287 | + | |
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
| |||
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
296 | | - | |
297 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
298 | 308 | | |
299 | 309 | | |
300 | 310 | | |
| |||
0 commit comments