github Azure/azure-sdk-for-python azure-ai-agentserver-core_2.0.0b2

2.0.0b2 (2026-04-17)

Features Added

  • Startup configuration logging — AgentServerHost lifespan now emits three INFO-level log lines at startup: platform environment (agent name, version, port, session ID, SSE keep-alive), connectivity (project endpoint and OTLP endpoint masked to scheme://host, Application Insights configured flag), and host options (shutdown timeout, registered protocols). Sensitive values (Application Insights connection string) are never logged.
  • InboundRequestLoggingMiddleware — pure-ASGI middleware wired automatically by AgentServerHost that logs every inbound HTTP request. Logs method, path (no query string), status code, duration in milliseconds, and correlation headers (x-request-id, x-ms-client-request-id). Status codes >= 400 are logged at WARNING; unhandled exceptions are logged as status 500 at WARNING. OpenTelemetry trace ID is included when an active trace exists.
  • Inbound request logs now include trace-id extracted from the W3C traceparent header, even when no OTel span is active at middleware level. Previously the trace-id was only available after the endpoint handler created a request span.

Bugs Fixed

  • Fixed duplicate console log output when a StreamHandler was already present on the root logger (e.g. from logging.basicConfig() or framework setup). The SDK now detects any existing StreamHandler before adding its own, not just its sentinel-marked handler.

Don't miss a new azure-sdk-for-python release

NewReleases is sending notifications on new releases.