src/Arcus.Shared/Observability/Sinks/Converters/SuperCustomRequestTelemetryConverter.cs
/// <summary>
///     Provides capability to remove intermediary properties that are logged, but should not be tracked in the sink
/// </summary>
/// <param name="logEvent">Event that was logged and written to this sink</param>
Provides capability to remove intermediary properties that are logged, but should not be tracked in the sink
Provides capability to remove intermediary properties that are logged but should not be tracked in the sink
protected override void RemoveIntermediaryProperties(LogEvent logEvent)
        {
            logEvent.RemovePropertyIfPresent(ContextProperties.RequestTracking.RequestMethod);
            logEvent.RemovePropertyIfPresent(ContextProperties.RequestTracking.RequestHost);
            logEvent.RemovePropertyIfPresent(ContextProperties.RequestTracking.RequestUri);
            logEvent.RemovePropertyIfPresent(ContextProperties.RequestTracking.ResponseStatusCode);
            logEvent.RemovePropertyIfPresent(ContextProperties.RequestTracking.RequestDuration);
            logEvent.RemovePropertyIfPresent(ContextProperties.RequestTracking.RequestTime);
        }
protected override void RemoveIntermediaryProperties ( LogEvent logEvent ) { logEvent . RemovePropertyIfPresent ( ContextProperties . RequestTracking . RequestMethod ) ; logEvent . RemovePropertyIfPresent ( ContextProperties . RequestTracking . RequestHost ) ; logEvent . RemovePropertyIfPresent ( ContextProperties . RequestTracking . RequestUri ) ; logEvent . RemovePropertyIfPresent ( ContextProperties . RequestTracking . ResponseStatusCode ) ; logEvent . RemovePropertyIfPresent ( ContextProperties . RequestTracking . RequestDuration ) ; logEvent . RemovePropertyIfPresent ( ContextProperties . RequestTracking . RequestTime ) ; }
Provides capability to remove intermediary properties that are logged, but should not be tracked in the sink
Provides capability to remove intermediary properties that are logged but should not be tracked in the sink
logEvent
LogEvent
Event that was logged and written to this sink
Event that was logged and written to this sink