feat: add chat debug log tables, queries, and SDK types (#23913)

This commit is contained in:
Thomas Kosiewski
2026-04-13 15:06:06 +02:00
committed by GitHub
parent 58c6855c59
commit 6ab30123bf
31 changed files with 3540 additions and 9 deletions
+2 -1
View File
@@ -209,7 +209,8 @@ curl -X GET http://coder-server:8080/api/v2/deployment/config \
"structured_logging": true
},
"chat": {
"acquire_batch_size": 0
"acquire_batch_size": 0,
"debug_logging_enabled": true
}
},
"allow_workspace_renames": true,
+12 -7
View File
@@ -1240,7 +1240,8 @@
"structured_logging": true
},
"chat": {
"acquire_batch_size": 0
"acquire_batch_size": 0,
"debug_logging_enabled": true
}
}
```
@@ -2021,15 +2022,17 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
```json
{
"acquire_batch_size": 0
"acquire_batch_size": 0,
"debug_logging_enabled": true
}
```
### Properties
| Name | Type | Required | Restrictions | Description |
|----------------------|---------|----------|--------------|-------------|
| `acquire_batch_size` | integer | false | | |
| Name | Type | Required | Restrictions | Description |
|-------------------------|---------|----------|--------------|-------------|
| `acquire_batch_size` | integer | false | | |
| `debug_logging_enabled` | boolean | false | | |
## codersdk.ChatRetentionDaysResponse
@@ -3261,7 +3264,8 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
"structured_logging": true
},
"chat": {
"acquire_batch_size": 0
"acquire_batch_size": 0,
"debug_logging_enabled": true
}
},
"allow_workspace_renames": true,
@@ -3839,7 +3843,8 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
"structured_logging": true
},
"chat": {
"acquire_batch_size": 0
"acquire_batch_size": 0,
"debug_logging_enabled": true
}
},
"allow_workspace_renames": true,
+11
View File
@@ -1702,6 +1702,17 @@ How often to reconcile workspace prebuilds state.
Hide AI tasks from the dashboard.
### --chat-debug-logging-enabled
| | |
|-------------|------------------------------------------------|
| Type | <code>bool</code> |
| Environment | <code>$CODER_CHAT_DEBUG_LOGGING_ENABLED</code> |
| YAML | <code>chat.debugLoggingEnabled</code> |
| Default | <code>false</code> |
Force chat debug logging on for every chat, bypassing the runtime admin and user opt-in settings.
### --aibridge-enabled
| | |