[BUG] No iothub-connection-device-id with azure-spring-cloud-stream-binder-eventhubs #22446
Closed
3 tasks done
Labels
azure-spring
All azure-spring related issues
azure-spring-eventhubs
Spring event hubs related issues.
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Describe the bug
When consuming Iot Hub messages from the built-in event hub endpoint with the spring-cloud-stream library, the
org.springframework.messaging.Message
object doesn't containiothub-connection-device-id
in its headers. However, while theEventHubProcessor
is processing the message, this value is available.Code Snippet
My message consumer:
Expected behavior
I want to be able to read the DeviceId in a spring-cloud-stream consumer method
Screenshots
Here you can see that the incoming message in the
EventHubProcessor
does contain the propertyiothub-connection-device-id
.But the
EventHubMessageConverter
ignores values fromsystemProperties
, so that in the stream cloud consumer assignment to a DeviceId is no longer possible.Setup (please complete the following information):
Additional context
Add any other context about the problem here.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: