azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

[EventHubs] fix tracing bug

Open swathipil opened this issue 3 years ago • 0 comments

fixes: #27986

changes:

  • removed duplicate tracing which was adding the Azure.EventHubs.Message span 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

swathipil avatar Jan 03 '23 23:01 swathipil