1.40.0 (2026-04-30)
Features Added
- Added support for per-operation
http_logging_leveloverrides inHttpLoggingPolicy. #44115 - Introduced the keyword argument
additional_allowed_query_paramstoDistributedTracingPolicyandHttpLoggingPolicyto allow users to specify additional URL query parameters that should not be redacted in span attributes or logs. #46482- Users can specify this at the SDK client level by passing
additional_allowed_query_paramsto the client constructor. For example:client = ServiceClient(..., additional_allowed_query_params={"custom_param"}). This will apply to all operations performed by the client.
- Users can specify this at the SDK client level by passing
Other Changes
- URL attributes in HTTP tracing spans will now have query parameters sanitized by default. To add additional query parameters that should not be redacted, use the
additional_allowed_query_paramsargument in your client constructor. #46482 - Python 3.9 is no longer supported. Please use Python version 3.10 or later.