@@ -109,7 +109,6 @@ private class FunctionActivityTracker : IDisposable
109
109
{
110
110
private readonly string _executionId = Guid . NewGuid ( ) . ToString ( ) ;
111
111
private readonly object _functionMetricEventLockObject = new object ( ) ;
112
- private DateTime _startTime = DateTime . UtcNow ;
113
112
private ulong _totalExecutionCount = 0 ;
114
113
private int _metricEventIntervalInSeconds ;
115
114
private CancellationTokenSource _etwTaskCancellationSource = new CancellationTokenSource ( ) ;
@@ -132,7 +131,6 @@ internal FunctionActivityTracker(IMetricsEventGenerator generator, int metricEve
132
131
133
132
if ( currentSecond >= _metricEventIntervalInSeconds )
134
133
{
135
- RaiseMetricEtwEvent ( ExecutionStage . InProgress ) ;
136
134
RaiseFunctionMetricEvents ( ) ;
137
135
currentSecond = 0 ;
138
136
}
@@ -225,7 +223,6 @@ internal void StopEtwTaskAndRaiseFinishedEvent()
225
223
{
226
224
_etwTaskCancellationSource . Cancel ( ) ;
227
225
RaiseMetricsPerFunctionEvent ( ) ;
228
- RaiseMetricEtwEvent ( ExecutionStage . Finished ) ;
229
226
}
230
227
231
228
private void RaiseFunctionMetricEvents ( )
@@ -264,18 +261,6 @@ private void RaiseFunctionMetricEvent(RunningFunctionInfo runningFunctionInfo, i
264
261
runningFunctionInfo . Success ) ;
265
262
}
266
263
267
- private void RaiseMetricEtwEvent ( ExecutionStage executionStage )
268
- {
269
- var timeSpan = ( ulong ) ( DateTime . UtcNow - _startTime ) . TotalMilliseconds ;
270
- var executionCount = _totalExecutionCount ;
271
- WriteFunctionsMetricEvent ( _executionId , timeSpan , executionCount , executionStage . ToString ( ) ) ;
272
- }
273
-
274
- private void WriteFunctionsMetricEvent ( string funcExecutionId , ulong executionTimeSpan , ulong executionCount , string executionStage )
275
- {
276
- MetricsEventGenerator . RaiseFunctionsMetricEvent ( funcExecutionId , ( long ) executionTimeSpan , ( long ) executionCount , executionStage ) ;
277
- }
278
-
279
264
private static string GetDictionaryKey ( string name , Guid invocationId )
280
265
{
281
266
return string . Format ( "{0}_{1}" , name . ToString ( ) , invocationId . ToString ( ) ) ;
0 commit comments