Jonathan Cook, apologies for the delayed response as I had been discussing this scenario with the AppInsights team. Here are the key outcomes:
- By default, this is not possible with AppInsights SDK as available currently. There could be work-around which might make it work but those are untested and unsupported at the moment.
- Another option could be to use **opentelemetry-dotnet **which provides additional benefits including sampling, post-processing, and more. The following links contain features of OTel which could help achieve this ()
Customizing OpenTelemetry .NET SDK for Tracing
Tech Preview: OpenTelemetry Transformation Language statements as routing conditions
These features of OTel will depend on the ability to recognize the tenant-based telemetry for which additional tweaks might be required (for example inclusion of tenant header, if not readily available). While these are some of the options available, they have not been tested extensively for their efficacy and supportability in the current scenario.
I have also shared feedback and review request for the referenced document in the question for it to include caveats to the architecture discussed from Azure Monitor perspective.