azure-sdk-for-python
azure-sdk-for-python copied to clipboard
[EventHubs] fix tracing bug
fixes: #27986
changes:
- removed duplicate tracing which was adding the
Azure.EventHubs.Messagespan twice when sending a batch message/list of messages. - adding the tracing info the uamqp/pyamqp.Message application_properties rather than event_data. Ensures that the diagnostic ID is actually being added on the outgoing Message, rather than the EventData after outgoing Message has already been created.
- Adding the FakeSpan class to test telemetry.
TODO:
- follow-up issue created to address implementation so it behaves correctly in a separate PR: #28141