As shown in this post with the previous version it was possible to inject a PartitionContext with runtime metrics populated into an Event Hub triggered function.
The only thing needed was to add a PartitionContext parameter to the function and a little bit of configuration in the hosts.json:
As shown in this post with the previous version it was possible to inject a
PartitionContext
with runtime metrics populated into an Event Hub triggered function.The only thing needed was to add a
PartitionContext
parameter to the function and a little bit of configuration in thehosts.json
:I struggled to find a replacement for this in the new .NET isolated-process model. The only information I found was the following issue which shows how to add the partition context: https://github.com/Azure/azure-functions-dotnet-worker/issues/544
However, it does not include the runtime information of the partition. Is this somehow possible?