@@ -11,11 +11,11 @@ namespace Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics
11
11
{
12
12
internal class EventGenerator : IEventGenerator
13
13
{
14
- private const string EventTimestamp = "MM/dd/yyyy hh:mm:ss.fff tt " ;
14
+ private const string EventTimestampFormat = "O " ;
15
15
16
16
public void LogFunctionTraceEvent ( TraceLevel level , string subscriptionId , string appName , string functionName , string eventName , string source , string details , string summary , string exceptionType , string exceptionMessage , string functionInvocationId , string hostInstanceId , string activityId )
17
17
{
18
- string eventTimestamp = DateTime . UtcNow . ToString ( EventTimestamp ) ;
18
+ string eventTimestamp = DateTime . UtcNow . ToString ( EventTimestampFormat ) ;
19
19
FunctionsSystemLogsEventSource . Instance . SetActivityId ( activityId ) ;
20
20
switch ( level )
21
21
{
@@ -36,7 +36,7 @@ public void LogFunctionTraceEvent(TraceLevel level, string subscriptionId, strin
36
36
37
37
public void LogFunctionMetricEvent ( string subscriptionId , string appName , string functionName , string eventName , long average , long minimum , long maximum , long count , DateTime eventTimestamp )
38
38
{
39
- FunctionsSystemLogsEventSource . Instance . LogFunctionMetricEvent ( subscriptionId , appName , functionName , eventName , average , minimum , maximum , count , ScriptHost . Version , eventTimestamp . ToString ( EventTimestamp ) ) ;
39
+ FunctionsSystemLogsEventSource . Instance . LogFunctionMetricEvent ( subscriptionId , appName , functionName , eventName , average , minimum , maximum , count , ScriptHost . Version , eventTimestamp . ToString ( EventTimestampFormat ) ) ;
40
40
}
41
41
public void LogFunctionExecutionAggregateEvent ( string siteName , string functionName , long executionTimeInMs , long functionStartedCount , long functionCompletedCount , long functionFailedCount )
42
42
{
0 commit comments