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 toazure.core.tracing.common.with_current_context
#7252 -
Tracing:
link
renamedlink_from_headers
andlink
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 onlyazure.core.exceptions.HttpResponseError
azure.core.Configuration
is now onlyazure.core.configuration.Configuration
azure.core.HttpRequest
is now onlyazure.core.pipeline.transport.HttpRequest
azure.core.version
module has been removed. Useazure.core.__version__
to get version number.azure.core.pipeline_client
has been removed. Import fromazure.core
instead.azure.core.pipeline_client_async
has been removed. Import fromazure.core
instead.azure.core.pipeline.base
has been removed. Import fromazure.core.pipeline
instead.azure.core.pipeline.base_async
has been removed. Import fromazure.core.pipeline
instead.azure.core.pipeline.policies.base
has been removed. Import fromazure.core.pipeline.policies
instead.azure.core.pipeline.policies.base_async
has been removed. Import fromazure.core.pipeline.policies
instead.azure.core.pipeline.policies.authentication
has been removed. Import fromazure.core.pipeline.policies
instead.azure.core.pipeline.policies.authentication_async
has been removed. Import fromazure.core.pipeline.policies
instead.azure.core.pipeline.policies.custom_hook
has been removed. Import fromazure.core.pipeline.policies
instead.azure.core.pipeline.policies.redirect
has been removed. Import fromazure.core.pipeline.policies
instead.azure.core.pipeline.policies.redirect_async
has been removed. Import fromazure.core.pipeline.policies
instead.azure.core.pipeline.policies.retry
has been removed. Import fromazure.core.pipeline.policies
instead.azure.core.pipeline.policies.retry_async
has been removed. Import fromazure.core.pipeline.policies
instead.azure.core.pipeline.policies.distributed_tracing
has been removed. Import fromazure.core.pipeline.policies
instead.azure.core.pipeline.policies.universal
has been removed. Import fromazure.core.pipeline.policies
instead.azure.core.tracing.abstract_span
has been removed. Import fromazure.core.tracing
instead.azure.core.pipeline.transport.base
has been removed. Import fromazure.core.pipeline.transport
instead.azure.core.pipeline.transport.base_async
has been removed. Import fromazure.core.pipeline.transport
instead.azure.core.pipeline.transport.requests_basic
has been removed. Import fromazure.core.pipeline.transport
instead.azure.core.pipeline.transport.requests_asyncio
has been removed. Import fromazure.core.pipeline.transport
instead.azure.core.pipeline.transport.requests_trio
has been removed. Import fromazure.core.pipeline.transport
instead.azure.core.pipeline.transport.aiohttp
has been removed. Import fromazure.core.pipeline.transport
instead.azure.core.polling.poller
has been removed. Import fromazure.core.polling
instead.azure.core.polling.async_poller
has been removed. Import fromazure.core.polling
instead.