Trace sessions
Boundary includes session and connection identifiers in controller observation events and worker logs. Use these identifiers to troubleshoot proxied traffic and multi-hop session failures, and to trace an affected session through every hop in the worker chain.
Identifiers
| Source | Identifier | Description |
|---|---|---|
| Controller observation event | session_id | The unique identifier of the session. |
| Controller observation event | connection_id | The unique identifier of the network connection within the session. |
| Controller observation event | route | The ordered list of worker IDs that proxy the connection, from the ingress worker through any intermediate workers to the egress worker. |
| Self-managed worker log | session_id | Identifies the session associated with the worker operation. |
| Self-managed worker log | connection_id | Identifies the specific network connection within the session. |
When a session connection is authorized, the controller publishes an observation event that contains the session_id, connection_id, and route.
Worker error logs and event traces include the session_id and connection_id when they are available.
Trace a session
To trace an impacted session through the worker chain, complete the following steps:
- Find the
session_idof the impacted session. - Search your event sink for the controller observation event that contains the
session_id. - Read the
routeattribute to see the worker IDs that proxy the connection. - Search the worker log sinks for the
session_idorconnection_id, and inspect the errors from each worker in theroute.
You can query these identifiers across your central logging system or HCP event streams.
More information
Refer to the following topics for more information: