Skip to content

Add session ID to client log context#1809

Merged
kevinherron merged 1 commit into
mainfrom
codex/session-id-mdc
Jul 15, 2026
Merged

Add session ID to client log context#1809
kevinherron merged 1 commit into
mainfrom
codex/session-id-mdc

Conversation

@kevinherron

Copy link
Copy Markdown
Contributor

Summary

  • add the OPC UA session identifier to MDC whenever it is available during client session FSM logging
  • centralize instance-id and session-id MDC setup in scoped helpers

Why

Concurrent client session activity can otherwise be difficult to correlate from logs using only the FSM instance identifier. The session identifier provides a direct link between lifecycle, keep-alive, transfer, initialization, reactivation, and close messages.

Validation

  • mise exec -- mvn -q spotless:apply
  • mise exec -- mvn -q clean compile

No unit tests were added or run for this change.

Include the OPC UA session identifier in MDC once it becomes available
so concurrent session activity can be correlated reliably.
@kevinherron
kevinherron marked this pull request as ready for review July 15, 2026 13:38
@kevinherron
kevinherron merged commit 46bc6ca into main Jul 15, 2026
6 checks passed
@kevinherron kevinherron added this to the 1.1.5 milestone Jul 15, 2026
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