-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Properties and System properties missing when subscribing to Azure Events pubsub #2530
Comments
@ItalyPaleAle do you remember whether the IOT Hub properties are now being sent correctly after you switched the EventHubs implementation? |
Pub/sub components was the only reason I started looking into DAPR few days ago. I'm using data enrichment in IotHub on custom endpoints. When using DAPR with Eventhub pub/sub, all custom message properties are skipped. I found this piece of code, which is responsible for passing through properties from incoming EventHub message: Only short list of properties are supported, all others go to default "// nop" statement. I can't figure out what could be the reason for not including them all? |
hope to using dapr for scale out instance process eventhub message, cause direct using eventhub sdk seems will limit by partition count. (using dapr can helpful for this correct?) will the all properties will support? |
it seems it will also limit by partition count, only one app will receive the request if partition count is 1. |
Expected Behavior
Using the PubSub or Input binding with Azure Event Hubs, I get all the relevant information: event body, properties and system properties.
Actual Behavior
The binding is missing important events data that are stored in properties and system properties. Other services send events to Event Hubs and use that properties and system properties to provide relevant information, for example, IoT Hub, where fixes to the binding has been done to include that important information:
There has been other issues related to this which have fixed the integration with Azure IoT Hubs and its compatible Event Hub endpoint:
#1151
#1243
In the case of Azure Digital Twins (ADT), when you route output data to Event Hubs, the following information is part of the event:
Payload / Event Body:
Properties:
System Properties:
Here you can see the whole event data from a C# debug screenshot:
Steps to Reproduce the Problem
Use PubSub / Input Binding components with Azure Event Hubs + ADT output as described in this article: https://learn.microsoft.com/en-us/azure/digital-twins/concepts-route-events
Create a client application that use the DAPR eventhubs pub/sub (go or C#) and the properties and system properties are not present when receiving the data.
In the code there are some references to the "requireAllProperties" but not found a way to make it work:
components-contrib/pubsub/azure/eventhubs/eventhubs.go
Line 130 in f0587ca
Another way to test it is to create a client app that uses the PubSub with EventHubs, publis some events adding properties and validate that the properties or system properties are not present when subscribed to EventsHub.
The text was updated successfully, but these errors were encountered: