Skip to content

Conversation

@dwilson6
Copy link

What does this PR do?

Fixing a bug in the azure-service-bus instrumentation that breaks the createMessageBatch tryAddMessage method by changing it from a sync method that returns a boolean to an async method returning a promise.

First adding a test to reproduce the bug and then I'll push the fix which switches from tracePromise to traceSync.

Motivation

Ran into this bug which was causing some code to drop service bus messages when building batches due to returning a promise which is truthy even when the resolved promise would return false but the consuming code is synchronous.

Plugin Checklist

Additional Notes

@dwilson6 dwilson6 marked this pull request as ready for review November 25, 2025 21:33
@dwilson6 dwilson6 requested review from a team as code owners November 25, 2025 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant