azure-servicebus_7.10.0
7.10.0 (2023-05-09)
Version 7.10.0 is our first stable release of the Azure Service Bus client library based on a pure Python implemented AMQP stack.
Features Added
- A new boolean keyword argument
uamqp_transport
has been added to sync and asyncServiceBusClient
constructors which indicates whether to use theuamqp
library or the default pure Python AMQP library as the underlying transport.
Bugs Fixed
- Fixed a bug where sync and async
ServiceBusAdministrationClient
expectedcredential
withget_token
method returningAccessToken.token
of typebytes
and notstr
, now matching the documentation. - Fixed a bug where
raw_amqp_message.header
andmessage.header
properties onServiceReceivedBusMessage
were returned withdurable
,first_acquirer
, andpriority
properties set by default, rather than the values returned by the service. - Fixed a bug where
ServiceBusReceivedMessage
was not picklable (Issue #27947).
Other Changes
- The
message
attribute onServiceBus
/ServiceBusMessageBatch
/ServiceBusReceivedMessage
, which previously exposed theuamqp.Message
/uamqp.BatchMessage
, has been deprecated.LegacyMessage
/LegacyBatchMessage
objects returned by themessage
attribute onServiceBus
/ServiceBusMessageBatch
have been introduced to help facilitate the transition.
- Removed uAMQP from required dependencies.
- Adding
uamqp >= 1.6.3
as an optional dependency for use with theuamqp_transport
keyword. - Updated tracing (#29995):
- Additional attributes added to existing spans:
messaging.system
- messaging system (i.e.,servicebus
)messaging.operation
- type of operation (i.e.,publish
,receive
, orsettle
)messaging.batch.message_count
- number of messages sent or received (if more than one)
- A span will now be created upon calls to the service that settle messages.
- The span name will contain the settlement operation (e.g.,
ServiceBus.complete
) - The span will contain
az.namespace
,messaging.destination.name
,net.peer.name
,messaging.system
, andmessaging.operation
attributes.
- The span name will contain the settlement operation (e.g.,
- All
send
spans now contain links tomessage
spans. Now,message
spans will no longer contain a link to thesend
span.
- Additional attributes added to existing spans: