Open samcarton opened 4 years ago
Hi @samcarton Thanks for reaching out. We will review and update as appropriate.
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
)
The following statement under "Event metadata" makes it seem like
PartitionContext
is a property onEventData
, 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 thatPartitionContext
information can only be obtained by including aPartitionContext partitionContext
parameter binding expression in your method signature (and noting it must be namedPartitionContext
/partitionContext
).Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.