Show execution time in logs screen for http and timer functions

This commit is contained in:
Peter Stockings
2025-12-02 20:08:56 +11:00
parent b863a5a9ae
commit 2253c8f7a7
2 changed files with 5 additions and 1 deletions

View File

@@ -44,6 +44,8 @@ history_url=url_for('http.history', function_id=function_id)) }}
<span class="text-sm text-gray-900 dark:text-gray-200">{{
invocation.invocation_time.strftime('%Y-%m-%d %H:%M:%S')
}}</span>
<span class="text-xs text-gray-500 dark:text-gray-400">{{ "%.2f"|format(invocation.execution_time or
0) }}ms</span>
<span
class="inline-flex items-center w-fit px-2 py-1 text-xs font-medium bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300 rounded-full">
v{{ invocation.version_number }}

View File

@@ -12,7 +12,7 @@ cancel_url=url_for('timer.overview'),
logs_url=url_for('timer.logs', function_id=function_id),
history_url=url_for('timer.history', function_id=function_id)) }}
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="px-4 sm:px-6 lg:px-8 py-8">
{{ render_partial('dashboard/analytics.html', invocations=timer_function_invocations) }}
<div
class="bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 overflow-hidden">
@@ -34,6 +34,8 @@ history_url=url_for('timer.history', function_id=function_id)) }}
<span class="text-sm text-gray-900 dark:text-gray-200">{{
invocation.invocation_time.strftime('%Y-%m-%d %H:%M:%S')
}}</span>
<span class="text-xs text-gray-500 dark:text-gray-400">{{ "%.2f"|format(invocation.execution_time or
0) }}ms</span>
<span
class="inline-flex items-center w-fit px-2 py-1 text-xs font-medium bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300 rounded-full">
v{{ invocation.version_number }}