예제 #1
0
        public void Event(string eventName, IDictionary <string, string> scopeProperties = null, IDictionary <string, string> properties = null, IDictionary <string, double> metrics = null)
        {
            telemetryScopedProperties.SetScopeProperties(scopeProperties);
            telemetryLogger.Event(eventName, properties, metrics);

            if (RouteBinding?.Logging?.ScopedStreamLoggers?.Count > 0)
            {
                foreach (var scopedStreamLogger in RouteBinding?.Logging.ScopedStreamLoggers.Where(l => l.LogEvent))
                {
                    telemetryScopedStreamLogger.Event(scopedStreamLogger, eventName, telemetryScopedProperties.Properties.ConcatOnce(properties), metrics);
                }
            }
        }
예제 #2
0
 public void Event(string eventName, IDictionary <string, string> scopeProperties = null, IDictionary <string, string> properties = null, IDictionary <string, double> metrics = null)
 {
     telemetryScopedProperties.SetScopeProperties(scopeProperties);
     telemetryLogger.Event(eventName, properties, metrics);
     tenantTrackLogger.Event(eventName, telemetryScopedProperties.Properties.ConcatOnce(properties), metrics);
 }