You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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`.
309
309
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).
| 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.
Copy file name to clipboardExpand all lines: articles/container-apps/sessions-usage.md
+6-11Lines changed: 6 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -312,20 +312,15 @@ This template contains the following settings for managed identity:
312
312
313
313
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.
314
314
315
-
### Available Log Analytics tables
315
+
### Logging differences by session type
316
316
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:
| 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.
325
322
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).
0 commit comments