💬 Review commented on "enhance: OTel設定時、JSONログにtrace_id, span_id, trace_flagがつくように": coderabbitai[bot] "_🎯 Functional Correctness_ | _🟡 Minor_ | _⚡ Quick win_
<details>
<summary>🧩 Analysis chain</summary>
🏁 Script executed:
```shell
#!/bin/bash
# Description: Check if endedPollNotification and postScheduledNote queues had error handling in the previous version
# Search for any removed .on('failed') handlers for these queues
git log --oneline -5 -- packages/backend/src/queue/QueueProcessorService.ts
git diff HEAD~1 -- packages/backend/src/queue/QueueProcessorService.ts | grep -A5 -B5 'EndedPollNotification\|PostScheduledNote'
```
Repository: misskey-dev/misskey
Length of output: 1255
---
🏁 Script executed:
```shell
#!/bin/bash
set -euo pipefail
sed -n '430,540p' packages/backend/src/queue/QueueProcessorService.ts
printf '\n--- queue-job-runner ---\n'
sed -n '1,260p' packages/backend/src/queue/queue-job-runner.ts
printf '\n--- diff around queue worker registrations ---\n'
git diff HEAD~1 -- packages/backend/src/queue/QueueProcessorService.ts | sed -n '1,260p'
```
Repository: misskey-dev/misskey
Length of output: 17325
---
🏁 Script executed:
```shell
#!/bin/bash
set -euo pipefail
rg -n "startSpanWithTraceContext|captureMessage\\(|on\\('failed'\\)" packages/backend/src/core/telemetry packages/backend/src/queue -g '*.ts'
```
Repository: misskey-dev/misskey
Length of output: 4557
---
</details>
**`endedPollNotificationQueueWorker` と `postScheduledNoteQueueWorker` も移行してください**
他の 8 キューと同様に `runQueueJobWithTraceContext` を使うと、失敗時の `logger.error` / `captureMessage` を含めた処理に揃えられます。今のままだとこの 2 件だけエラー通知の経路が異なります。`packages/backend/src/queue/QueueProcessorService.ts:507,518`
<details>
<summary>🤖 Prompt for AI Agents</summary>
```
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@packages/backend/src/queue/QueueProcessorService.ts` at line 14, Update
endedPollNotificationQueueWorker and postScheduledNoteQueueWorker to execute
through runQueueJobWithTraceContext, matching the other queue workers and
preserving their existing job behavior while routing failures through the shared
logger.error and captureMessage handling.
```
</details>
<!-- cr-indicator-types:potential_issue -->
<!-- cr-comment:v1:c2d8053d97abf6f241feb442 -->
<!-- This is an auto-generated comment by CodeRabbit -->" https://github.com/misskey-dev/misskey/pull/17748#discussion_r3610312872
<details>
<summary>🧩 Analysis chain</summary>
🏁 Script executed:
```shell
#!/bin/bash
# Description: Check if endedPollNotification and postScheduledNote queues had error handling in the previous version
# Search for any removed .on('failed') handlers for these queues
git log --oneline -5 -- packages/backend/src/queue/QueueProcessorService.ts
git diff HEAD~1 -- packages/backend/src/queue/QueueProcessorService.ts | grep -A5 -B5 'EndedPollNotification\|PostScheduledNote'
```
Repository: misskey-dev/misskey
Length of output: 1255
---
🏁 Script executed:
```shell
#!/bin/bash
set -euo pipefail
sed -n '430,540p' packages/backend/src/queue/QueueProcessorService.ts
printf '\n--- queue-job-runner ---\n'
sed -n '1,260p' packages/backend/src/queue/queue-job-runner.ts
printf '\n--- diff around queue worker registrations ---\n'
git diff HEAD~1 -- packages/backend/src/queue/QueueProcessorService.ts | sed -n '1,260p'
```
Repository: misskey-dev/misskey
Length of output: 17325
---
🏁 Script executed:
```shell
#!/bin/bash
set -euo pipefail
rg -n "startSpanWithTraceContext|captureMessage\\(|on\\('failed'\\)" packages/backend/src/core/telemetry packages/backend/src/queue -g '*.ts'
```
Repository: misskey-dev/misskey
Length of output: 4557
---
</details>
**`endedPollNotificationQueueWorker` と `postScheduledNoteQueueWorker` も移行してください**
他の 8 キューと同様に `runQueueJobWithTraceContext` を使うと、失敗時の `logger.error` / `captureMessage` を含めた処理に揃えられます。今のままだとこの 2 件だけエラー通知の経路が異なります。`packages/backend/src/queue/QueueProcessorService.ts:507,518`
<details>
<summary>🤖 Prompt for AI Agents</summary>
```
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@packages/backend/src/queue/QueueProcessorService.ts` at line 14, Update
endedPollNotificationQueueWorker and postScheduledNoteQueueWorker to execute
through runQueueJobWithTraceContext, matching the other queue workers and
preserving their existing job behavior while routing failures through the shared
logger.error and captureMessage handling.
```
</details>
<!-- cr-indicator-types:potential_issue -->
<!-- cr-comment:v1:c2d8053d97abf6f241feb442 -->
<!-- This is an auto-generated comment by CodeRabbit -->" https://github.com/misskey-dev/misskey/pull/17748#discussion_r3610312872



