|
@@ -31,7 +31,7 @@ namespace TEAMModelOS
|
|
|
string time = DateTimeOffset.Now.ToString("yyyyMMdd");
|
|
|
string name = context.FunctionDefinition.Name;
|
|
|
string costkey = $"AzureFunction:Cost:{time}:{name}";
|
|
|
- //超过3秒的 才记录执行时长
|
|
|
+ //超过1秒的 才记录执行时长
|
|
|
if (costTime > 1) {
|
|
|
await _azureRedis.GetRedisClient(8).HashSetAsync(costkey, costTime, costTime);
|
|
|
await _azureRedis.GetRedisClient(8).KeyExpireAsync(costkey, new TimeSpan(24, 0, 0));
|