Skip to content

Commit 0735ae4

Browse files
committed
Update sessions logging guidance
1 parent f8d37c3 commit 0735ae4

2 files changed

Lines changed: 10 additions & 19 deletions

File tree

articles/container-apps/sessions-code-interpreter.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -305,16 +305,12 @@ Authorization: Bearer <TOKEN>
305305

306306
## Logging
307307

308-
Code interpreter sessions emit application logs to Log Analytics, but don't emit platform logs. If you need request/response tracing, capture it in the application that calls the session pool management API (for example, log request IDs, inputs, and responses at your app boundary).
308+
The available outputs are the results you return from code execution, including `stdout` and `stderr`.
309309

310-
### Log Analytics tables
310+
If you need request or response tracing, capture it in the application that calls the session pool management API (for example, log request IDs, inputs, and responses at your app boundary).
311311

312-
| Log category | Log Analytics table | Description |
313-
|-------------|---------------------|-------------|
314-
| Application logs | `AppEnvSessionConsoleLogs` | Standard output (`stdout`) and standard error (`stderr`) emitted by code running in the session. Logs appear after a session is invoked. |
315-
| Platform logs | Not applicable | Session lifecycle and pool event logs aren't emitted for code interpreter session pools. |
316-
317-
If logs are sent directly to Log Analytics, the table uses the _CL suffix (for example, `AppEnvSessionConsoleLogs_CL`). When logs are routed through Azure Monitor diagnostic settings, the table name doesn't include the _CL suffix.
312+
> [!NOTE]
313+
> Code interpreter sessions don't emit AppEnvSession logs to Log Analytics.
318314
319315
## Metrics
320316

articles/container-apps/sessions-usage.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -312,20 +312,15 @@ This template contains the following settings for managed identity:
312312

313313
Azure Container Apps dynamic sessions integrate with Azure Monitor and Log Analytics to collect logs emitted during session execution. The configuration steps are the same for code interpreter and custom container session pools, but the available log categories differ by session type. Metrics returned via API response headers aren't written to Log Analytics.
314314

315-
### Available Log Analytics tables
315+
### Logging differences by session type
316316

317-
The following Log Analytics tables are created when logs are first emitted. For a full list of supported categories on the environment resource (`Microsoft.App/managedEnvironments`), see [Supported logs for Microsoft.App/managedEnvironments](/azure/azure-monitor/reference/supported-logs/microsoft-app-managedenvironments-logs).
317+
Use the following guidance to compare logging behavior and jump to the details that match your session type:
318318

319-
| Session type | Log category | Log Analytics table | Description |
320-
|-------------|--------------|---------------------|-------------|
321-
| Code interpreter sessions (platform-managed) | Application logs | `AppEnvSessionConsoleLogs` | Standard output (`stdout`) and standard error (`stderr`) emitted by code running in the session. Logs appear after a session is invoked. |
322-
| | Platform logs | Not applicable | Session lifecycle and pool event logs aren't emitted for code interpreter session pools. |
323-
| Custom container sessions | Application logs | `AppEnvSessionConsoleLogs` | Standard output (`stdout`) and standard error (`stderr`) emitted by the containerized application. Azure Container Apps doesn't generate application logs for custom containers; you must emit logs from your container. |
324-
| | Platform logs | `AppEnvSessionLifecycleLogs`, `AppEnvSessionPoolEvents` | Platform-generated events related to session pool allocation, lifecycle, and operational state. |
319+
- **Code interpreter sessions**: Outputs are returned from execution (including `stdout` and `stderr`), but AppEnvSession Log Analytics tables aren't emitted. See [Code interpreter sessions logging](./sessions-code-interpreter.md#logging).
320+
- **Custom container sessions**: AppEnvSession Log Analytics tables are emitted when your container writes to `stdout` or `stderr`, and platform logs are available for pool lifecycle and events. See [Custom container sessions logging](./sessions-custom-container.md#logging).
321+
- **Common**: Metrics returned via API response headers aren't written to Log Analytics.
325322

326-
If logs are sent directly to Log Analytics, the tables use the _CL suffix (for example, `AppEnvSessionConsoleLogs_CL`). When logs are routed through Azure Monitor diagnostic settings, the table names don't include the _CL suffix.
327-
328-
See also: For logging and metrics details, see [Custom container sessions](./sessions-custom-container.md#logging) and [Code interpreter sessions](./sessions-code-interpreter.md#logging).
323+
For a full list of supported session categories on the environment resource (`Microsoft.App/managedEnvironments`), see [Supported logs for Microsoft.App/managedEnvironments](/azure/azure-monitor/reference/supported-logs/microsoft-app-managedenvironments-logs).
329324

330325
## Related content
331326

0 commit comments

Comments
 (0)