You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the default web dashboard, the underlying query fails with:
External error: Execution error: Cannot convert Duration(Microsecond) to epoch
I looked at the underlying query - it looks like valid postgres syntax to me but it is not running.
WITH dataset AS (
SELECT
(attributes->>'http.method') || ' ' || COALESCE(attributes->>'http.route', attributes->>'http.target') as endpoint,
extract(epoch from end_timestamp - start_timestamp) * 1000 as duration_ms
FROM records
WHERE attributes ? 'http.method' and (attributes ? 'http.route' or attributes ? 'http.target')
)
SELECT endpoint, avg(duration_ms) as average_duration_ms
FROM dataset
GROUP BY endpoint
ORDER BY average_duration_ms desc
LIMIT 7;
Important line is extract(epoch from end_timestamp - start_timestamp) * 1000 as duration_ms
Python, Logfire & OS Versions, related packages (not required)
Description
In the default web dashboard, the underlying query fails with:
I looked at the underlying query - it looks like valid postgres syntax to me but it is not running.
Important line is
extract(epoch from end_timestamp - start_timestamp) * 1000 as duration_ms
Python, Logfire & OS Versions, related packages (not required)
The text was updated successfully, but these errors were encountered: