Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Logger ¶
Logger injects a logger with connectionID and traceID into the context. This ensures all log statements within WebSocket callbacks automatically include both IDs for proper correlation.
Returns a WebSocketMiddleware function that can be used with websocket.WithMiddleware().
func TraceID ¶
TraceID generates a fresh trace ID for each WebSocket callback invocation. This allows each message, connection event, and disconnect to be traced independently while maintaining the same connectionID throughout the connection lifecycle.
Returns a WebSocketMiddleware function that can be used with websocket.WithMiddleware().
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.