从嵌套操作的内部范围记录时,日志消息将“操作名称”设置为顶级操作
using (IOperationHolder<RequestTelemetry> topHolder = telemetryClient.StartOperation<RequestTelemetry>("TopOperation1"))
{
//telemetryClient.TrackTrace("top holder log 111");
logger.LogWarning("top holder log 1");
using (IOperationHolder<RequestTelemetry> innerHolder = telemetryClient.StartOperation<RequestTelemetry>("InnerOperation1"))
{
//telemetryClient.TrackTrace("inner holder log 1 111");
logger.LogWarning("inner holder log 1");
}
}