question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Eventhub event metadata is None

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
damnedOperatorcommented, Apr 1, 2020

Have the same problem mentioned by @richardleeaus

1reaction
richardleeauscommented, Mar 25, 2020

This still appears to be an issue? Nothing within the passed in object func.EventHubEvent has SystemProperties? Like above, no EnqueuedTime available

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found