Skip to content

Request-Id ヘッダのログ出力対応 - #10

Open
azuki774 wants to merge 1 commit into
releasefrom
feature/request-id-logging
Open

azuki774 wants to merge 1 commit into
releasefrom
feature/request-id-logging

Conversation

@azuki774

@azuki774 azuki774 commented Nov 13, 2025 •

Copy link
Copy Markdown
Owner

概要

  • Fastify の onRequest フックで Request-Id ヘッダを取得し、トレースコンテキストに渡すようにしました
  • AsyncLocalStorage を使った TraceContext を新設し、Logger で TraceId を自動表示するようにしました
  • ヘッダが存在しない場合は従来通りのログ出力です

@azuki774
azuki774 force-pushed the feature/request-id-logging branch from 6c39fa9 to 197536f Compare November 13, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant