MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.31k stars 21.5k forks source link

PartitionContext in Event Metadata #54050

Open samcarton opened 4 years ago

samcarton commented 4 years ago

The following statement under "Event metadata" makes it seem like PartitionContext is a property on EventData, when it apparently is not: The properties come from the EventData class.

The example earlier in the document also makes it look like you can simply access all metadata properties just by using an EventData parameter binding in your method signature. It would save some confusion to point out that PartitionContext information can only be obtained by including a PartitionContext partitionContext parameter binding expression in your method signature (and noting it must be named PartitionContext/partitionContext).


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

DixitArora-MSFT commented 4 years ago

Hi @samcarton Thanks for reaching out. We will review and update as appropriate.

samcarton commented 4 years ago

While you're at it, the host.json 2.x+ properties doc doesn't list the "enableReceiverRuntimeMetric": true property that is required in order for partitionContext.RuntimeInformation to be populated (or in fact any of the other properties on eventProcessorOptions)