Eventhub event metadata is None
See original GitHub issueI followed the example code in Eventhub triggerred Azure function in python. However, I got None
for event enqueue time, offset, and etc.
import logging
import azure.functions as func
def main(event: func.EventHubEvent):
logging.info('Function triggered to process a message: ', event.get_body())
logging.info(' EnqueuedTimeUtc =', event.enqueued_time)
logging.info(' SequenceNumber =', event.sequence_number)
logging.info(' Offset =', event.offset)
EnqueuedTimeUtc, SequenceNumber, Offset are all None
.
event.getbody()
return the right payload I sent to evetnhub. Do I need to modify the payload I sent to eventhub to get the EnqueuedTimeUtc and other metadata?
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Add custom data to events in Azure Event Hubs
This article shows you how to add custom data to events in Azure Event ... events may also contain custom metadata, in the...
Read more >Microsoft.Azure.EventHubs assembly/metadata file missing in ...
I am trying to create EventHub trigger azure function with many as cardinality for event message batching. Following is code in run.csx
Read more >Azure Event Hubs and its Complete Overview - Serverless360
Azure Event Hub is a data ingestion service which streams a huge count of messages from any source to provide an immediate response...
Read more >azure.eventhub package - NET
Metadata set by the Event Hubs Service associated with the event. ... None. Example: create_batch (**kwargs: Any) → azure.eventhub._common.
Read more >azure-eventhub - PyPI
Event Hubs namespace with an Event Hub: To interact with Azure Event Hubs, you'll also need ... Leave None for no load balancing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Have the same problem mentioned by @richardleeaus
This still appears to be an issue? Nothing within the passed in object
func.EventHubEvent
has SystemProperties? Like above, no EnqueuedTime available