trace-session
Identify which sessions to trace on a single database instance by session ID, blockers, or long-running transactions, with logins pulled from the encrypted store so no password is sent.
Instructions
dbabrain common.cli trace-session: Which sessions to trace on one instance.
server_id (or target) names the server; its connection or host login is completed from this node's inventory and encrypted secret store, so a request carries no password.
Request fields (pass them as request):
target: The machine or instance: a server_id, or
<db_type> <ip>[:port].session_id: One session.
blocking_only: Only blockers.
min_tran_seconds: Only transactions open this long.
key: The secret-store passphrase, when not in the environment.
key_base64: The same, base64.
connection: The database login, complete: db_type, host, port, username, password - and, where they apply, database, instance_name, service_name, sqlserver_driver, sqlserver_tls_verify and sql_access (the 8i bridge); server_id an...
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "trace-session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |