src/Arcus.Shared/Observability/Sinks/Converters/SuperCustomOperationContextConverter.cs
/// <summary>
/// Enrich the given <paramref name="telemetryEntry"/> with the Operation-related information.
/// </summary>
/// <param name="telemetryEntry">The telemetry instance to enrich.</param>
Enrich the given  with the Operation-related information.
Enrich the given with the Operation - related information .
public void EnrichWithCorrelationInfo<TEntry>(TEntry telemetryEntry) where TEntry : ITelemetry, ISupportProperties
        {
            if (telemetryEntry?.Context?.Operation == null)
            {
                return;
            }
            if (telemetryEntry.Properties.TryGetValue(ContextProperties.Correlation.OperationId, out string correlationId))
            {
                string operationId = correlationId;
                string parentOperationId = string.Empty;
                if (correlationId.Contains("//"))
                {
                    operationId = correlationId.Split("//")[0];
                    parentOperationId = correlationId.Split("//")[1];
                }
                telemetryEntry.Context.Operation.Id = operationId;
                telemetryEntry.Context.Operation.ParentId = parentOperationId;
            }
        }
public void EnrichWithCorrelationInfo < TEntry > ( TEntry telemetryEntry ) where TEntry : ITelemetry , ISupportProperties { if ( telemetryEntry ? . Context ? . Operation == null ) { return ; } if ( telemetryEntry . Properties . TryGetValue ( ContextProperties . Correlation . OperationId , out string correlationId ) ) { string operationId = correlationId ; string parentOperationId = string . Empty ; if ( correlationId . Contains ( " " ) ) { operationId = correlationId . Split ( " " ) [ 0 ] ; parentOperationId = correlationId . Split ( " " ) [ 1 ] ; } telemetryEntry . Context . Operation . Id = operationId ; telemetryEntry . Context . Operation . ParentId = parentOperationId ; } }
Enrich the given  with the Operation-related information.
Enrich the given with the Operation - related information .
// TODO: Contribute Upstream : Provide capability to interpret and pass parent id // This is a hack as a workaround so I can pass this without changing how we log things
telemetryEntry
TEntry
The telemetry instance to enrich.
The telemetry instance to enrich .