github Azure/azure-sdk-for-python azure-core_1.0.0b4

latest releases: azure-cognitiveservices-language-textanalytics_0.2.2, azure-cognitiveservices-anomalydetector_0.3.1, azure-communication-callautomation_1.2.0...
pre-release4 years ago

2019-10-07 Version 1.0.0b4

Features

  • Tracing: network span context is available with the TRACING_CONTEXT in pipeline response #7252

  • Tracing: Span contract now has kind, traceparent and is a context manager #7252

  • SansIOHTTPPolicy methods can now be coroutines #7497

  • Add multipart/mixed support #7083:

    • HttpRequest now has a "set_multipart_mixed" method to set the parts of this request
    • HttpRequest now has a "prepare_multipart_body" method to build final body.
    • HttpResponse now has a "parts" method to return an iterator of parts
    • AsyncHttpResponse now has a "parts" methods to return an async iterator of parts
    • Note that multipart/mixed is a Python 3.x only feature

Bug fixes

  • Tracing: policy cannot fail the pipeline, even in the worst condition #7252
  • Tracing: policy pass correctly status message if exception #7252
  • Tracing: incorrect span if exception raised from decorated function #7133
  • Fixed urllib3 ConnectTimeoutError being raised by Requests during a socket timeout. Now this exception is caught and wrapped as a ServiceRequestError #7542

Breaking changes

  • Tracing: azure.core.tracing.context removed

  • Tracing: azure.core.tracing.context.tracing_context.with_current_context renamed to azure.core.tracing.common.with_current_context #7252

  • Tracing: link renamed link_from_headers and link takes now a string

  • Tracing: opencensus implementation has been moved to the package azure-core-tracing-opencensus

  • Some modules and classes that were importables from several differente places have been removed:

    • azure.core.HttpResponseError is now only azure.core.exceptions.HttpResponseError
    • azure.core.Configuration is now only azure.core.configuration.Configuration
    • azure.core.HttpRequest is now only azure.core.pipeline.transport.HttpRequest
    • azure.core.version module has been removed. Use azure.core.__version__ to get version number.
    • azure.core.pipeline_client has been removed. Import from azure.core instead.
    • azure.core.pipeline_client_async has been removed. Import from azure.core instead.
    • azure.core.pipeline.base has been removed. Import from azure.core.pipeline instead.
    • azure.core.pipeline.base_async has been removed. Import from azure.core.pipeline instead.
    • azure.core.pipeline.policies.base has been removed. Import from azure.core.pipeline.policies instead.
    • azure.core.pipeline.policies.base_async has been removed. Import from azure.core.pipeline.policies instead.
    • azure.core.pipeline.policies.authentication has been removed. Import from azure.core.pipeline.policies instead.
    • azure.core.pipeline.policies.authentication_async has been removed. Import from azure.core.pipeline.policies instead.
    • azure.core.pipeline.policies.custom_hook has been removed. Import from azure.core.pipeline.policies instead.
    • azure.core.pipeline.policies.redirect has been removed. Import from azure.core.pipeline.policies instead.
    • azure.core.pipeline.policies.redirect_async has been removed. Import from azure.core.pipeline.policies instead.
    • azure.core.pipeline.policies.retry has been removed. Import from azure.core.pipeline.policies instead.
    • azure.core.pipeline.policies.retry_async has been removed. Import from azure.core.pipeline.policies instead.
    • azure.core.pipeline.policies.distributed_tracing has been removed. Import from azure.core.pipeline.policies instead.
    • azure.core.pipeline.policies.universal has been removed. Import from azure.core.pipeline.policies instead.
    • azure.core.tracing.abstract_span has been removed. Import from azure.core.tracing instead.
    • azure.core.pipeline.transport.base has been removed. Import from azure.core.pipeline.transport instead.
    • azure.core.pipeline.transport.base_async has been removed. Import from azure.core.pipeline.transport instead.
    • azure.core.pipeline.transport.requests_basic has been removed. Import from azure.core.pipeline.transport instead.
    • azure.core.pipeline.transport.requests_asyncio has been removed. Import from azure.core.pipeline.transport instead.
    • azure.core.pipeline.transport.requests_trio has been removed. Import from azure.core.pipeline.transport instead.
    • azure.core.pipeline.transport.aiohttp has been removed. Import from azure.core.pipeline.transport instead.
    • azure.core.polling.poller has been removed. Import from azure.core.polling instead.
    • azure.core.polling.async_poller has been removed. Import from azure.core.polling instead.

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

NewReleases is sending notifications on new releases.