1.35.0 (2025-07-02)
Features Added
- Added a
start_time
keyword argument to thestart_span
andstart_as_current_span
methods in theOpenTelemetryTracer
class. This allows users to specify a custom start time for created spans. #41106 - Added a
context
keyword argument to thestart_span
andstart_as_current_span
methods in theOpenTelemetryTracer
class. This allows users to specify a custom parent context for created spans. #41511 - Added method
as_attribute_dict
toazure.core.serialization
for backcompat migration purposes. Will return a generated model as a dictionary where the keys are in attribute syntax. - Added
is_generated_model
method toazure.core.serialization
. Returns whether a given input is a model from one of our generated sdks. #41445 - Added
attribute_list
method toazure.core.serialization
. Returns all of the attributes of a given model from one of our generated sdks. #41571
Other Changes
- A timeout error when using the
aiohttp
transport (the default for async SDKs) will now be raised as aazure.core.exceptions.ServiceResponseTimeoutError
, a subtype of the previously raisedServiceResponseError
. - When using with
aiohttp
3.10 or later, a connection timeout error will now be raised as aazure.core.exceptions.ServiceRequestTimeoutError
, which can be retried. - The default implementation of
on_challenge
inBearerTokenCredentialPolicy
andAsyncBearerTokenCredentialPolicy
will now cache the retrieved token. #41857