Skip to content

Commit 50ecf57

Browse files
authored
[Service Bus] Fix sender identifier generation (#47346)
The focus of these changes is to fix a bug causing identifier generation for `ServiceBusSender` to not include the entity path as informational context.
1 parent 664b5fd commit 50ecf57

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sdk/servicebus/Azure.Messaging.ServiceBus/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
### Bugs Fixed
1010

11+
- Fixed an issue where identifier generation for senders did not correctly include the entity path as an informational element. ([#46952](https://github.com/Azure/azure-sdk-for-net/issues/46952))
12+
1113
### Other Changes
1214

1315
- Added annotations to make the package compatible with trimming and native AOT compilation.

sdk/servicebus/Azure.Messaging.ServiceBus/src/Sender/ServiceBusSender.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ internal ServiceBusSender(
119119
Argument.AssertNotNullOrWhiteSpace(entityPath, nameof(entityPath));
120120
connection.ThrowIfClosed();
121121

122-
var identifier = string.IsNullOrEmpty(options?.Identifier) ? DiagnosticUtilities.GenerateIdentifier(EntityPath) : options.Identifier;
122+
var identifier = string.IsNullOrEmpty(options?.Identifier) ? DiagnosticUtilities.GenerateIdentifier(entityPath) : options.Identifier;
123123

124124
EntityPath = entityPath;
125125
Identifier = identifier;

0 commit comments

Comments
 (0)