Closed murdockcrc closed 1 year ago
Hi @murdockcrc We looked into the issue. The short answer is, Explorer does not modify any system properties, we show them as is. The x-opt-enqueued-time is directly surfaced by the event hub node sdk that we uses, and here it what they return for example We were wondering if it is sufficent for your use case to use this enqueueTime property directly, which is not in system properties: If not, please let us know, and we will reopen the bug and route it to the event hub node sdk team.
Describe the bug When getting telemetry messages from an IoT Edge device using the IoT Hub Explorer, the system properties are represented like this:
The property
iothub-enqueuedtime
is serialized as a number.I believe this is incorrect, as per the documentation, the value of
iothub-enqueuedtime
should be a datetime object. From the docs:iothub-enqueuedtime | Date and time the Device-to-Cloud message was received by IoT Hub.
If you connect a console app to the event hub compatible endpoint, and read the raw messages from there, you will see that this property is serialized as a datetimeoffset value:
It seems to me that the value of this datetime object is serialized by the IoT Hub Explorer as a number, whereas the source of data is a datetime object.
Expected behavior The telemetry data preserves its original data type.
Additional context Running version 0.15.0