Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: correct connection_median_latency_ms in query#15086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
f0ssel merged 2 commits intomainfromf0ssel/usage-query-0
Oct 17, 2024

Conversation

f0ssel
Copy link
Contributor

Closes#14805

@@ -661,7 +661,7 @@ WITH
AND date_trunc('minute', was.created_at) = mb.minute_bucket
AND was.template_id = mb.template_id
AND was.user_id = mb.user_id
AND was.connection_median_latency_ms >= 0
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is the bug fix, in other queries that useconnection_median_latency_ms we always filter our the 0 values to rule out any usage stats.

Comment on lines +339 to +340
-- The greater than 0 is to support legacy agents that don't report connection_median_latency_ms.
WHERE workspace_agent_stats.created_at > $1 AND connection_median_latency_ms > 0
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is another fix I found along the way where we weren't filtering out the stats with 0 or selecting only recent stats.

@f0sself0ssel marked this pull request as ready for reviewOctober 16, 2024 16:56
Copy link
Member

@ethanndicksonethanndickson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Nice catches!

@f0sself0ssel merged commit5f640eb intomainOct 17, 2024
29 checks passed
@f0sself0ssel deleted the f0ssel/usage-query-0 branchOctober 17, 2024 16:22
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 17, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@ethanndicksonethanndicksonethanndickson approved these changes

@EmyrkEmyrkAwaiting requested review from Emyrk

Assignees

@f0sself0ssel

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Some users reporting 0ms latency on template insights
2 participants
@f0ssel@ethanndickson

[8]ページ先頭

©2009-2025 Movatter.jp