github Azure/azure-sdk-for-python azure-core_1.35.0

latest releases: azure-mgmt-computerecommender_1.0.0b1, azure-ai-language-conversations-authoring_1.0.0b1, azure-synapse-artifacts_0.21.0...
2 months ago

1.35.0 (2025-07-02)

Features Added

  • Added a start_time keyword argument to the start_span and start_as_current_span methods in the OpenTelemetryTracer class. This allows users to specify a custom start time for created spans. #41106
  • Added a context keyword argument to the start_span and start_as_current_span methods in the OpenTelemetryTracer class. This allows users to specify a custom parent context for created spans. #41511
  • Added method as_attribute_dict to azure.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 to azure.core.serialization. Returns whether a given input is a model from one of our generated sdks. #41445
  • Added attribute_list method to azure.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 a azure.core.exceptions.ServiceResponseTimeoutError, a subtype of the previously raised ServiceResponseError.
  • When using with aiohttp 3.10 or later, a connection timeout error will now be raised as a azure.core.exceptions.ServiceRequestTimeoutError, which can be retried.
  • The default implementation of on_challenge in BearerTokenCredentialPolicy and AsyncBearerTokenCredentialPolicy will now cache the retrieved token. #41857

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

NewReleases is sending notifications on new releases.