Files
Stephan BehnkeandGitHub 8e1fcb28cc Include task payload in OTEL debug (#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) -->
2025-01-29 10:22:12 -08:00
..
…
2024-08-23 14:48:10 -06:00
2025-01-22 12:41:51 -08:00
2024-09-09 14:44:20 -07:00
2024-08-23 14:48:10 -06:00
2024-08-23 14:48:10 -06:00
2024-08-23 14:48:10 -06:00
2025-01-22 12:41:51 -08:00
2024-09-09 14:44:20 -07:00
2025-01-22 12:41:51 -08:00
2024-04-03 17:06:32 +00:00
2024-08-23 14:48:10 -06:00
…
2024-08-23 14:48:10 -06:00
2025-01-22 12:41:51 -08:00
2024-09-09 14:44:20 -07:00
…
2025-01-22 12:41:51 -08:00
2024-07-26 16:42:24 -07:00
2024-08-23 14:48:10 -06:00
…