Closed AlexGhiondea closed 3 years ago
Samples | Link | Status | Notes | Action |
---|---|---|---|---|
Azure Event Hubs client library for Python Samples | link | |||
Collecting Scheduled Events with Event Hub | link | |||
Azure Event Hubs client library samples with persistent checkpointing for Python | link | |||
Azure Event Hubs client library samples with persistent checkpointing for Python | link | this is an async sample, but same title as the sync one, can we improve that? |
SYNC SAMPLES
- authenticate_with_sas_token.py, Line 9: replace ServiceBus with EventHub
- line 54: misnomer, since batch=False by default in .receive(), and True is not passed in. receive_batch() is also not used.
SYNC PERSTISTENT CHECKPOINTING
ASYNC_SAMPLES
- line 23: results in "SyntaxError: 'async with' outside async function"
- was able to connect to the iothub without any exceptions, so I assumed receiving events with the EventHubConsumer would work as well. did not actually send events to the iot hub, since it would take extra time to setup, which was not the objective of the sample.
- line 61: not receiving by batch, so must rename
ASYNC PERSTISTENT CHECKPOINTING
MISC
Nice find @swathipil
@yunhaoling To your question on sample title, we control that. You can make the change at https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples#azure-event-hubs-client-library-samples-with-persistent-checkpointing-for-python
@swathipil Please use https://github.com/Azure/azure-sdk-for-python/issues/15114 to track the changes for the issues you listed above.
https://docs.microsoft.com/en-us/samples/azure-samples/virtual-machines-python-scheduled-events-central-logging/virtual-machines-python-scheduled-events-central-logging/ uses the REST APIs to send events. I have another tracking item to consider whether or not we should update it to use the Event Hubs package
Update from @ramya-rao-a
Review the .Python samples for Event Hubs in the below locations to find the ones that do not use the latest version of the package. Update this issue with the list of samples that need updating.
Additionally, ensure the samples that live next to the source code for Event Hubst in this repo shows up in Event Hubs Python samples under docs.microsoft.com/samples. This is done by setting up the right metadata. Ensure that these samples are not outdated.