Aggregation of logs
When using Kubernetes, we can think of two primary methods for emitting logs. The first is directly from our code to an external logging system. The second is direct output via the standard output and error streams.
To aggregate logs directly to an external logging system, we can use Azure Application Insights. It can natively instrument .NET applications (among many other supported languages) with a few code changes.
To aggregate logs written to the standard output and error streams, we can use Container Insights, which is a capability within Azure Monitor. Container Insights is a great utility for viewing and querying logs produced by multiple Kubernetes clusters, but it currently does not easily support the level of structured interrelationship logging that this application will generate.
The MTAEDA application will use telemetry and logging directly to Application Insights so that we can support tracing.
Now, let us set up an Applications Insight...