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

chore: move stat reporting into workspacestats package#13386

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 7 commits intomainfromf0ssel/workspacestats
May 29, 2024

Conversation

f0ssel
Copy link
Contributor

@f0sself0ssel commentedMay 28, 2024
edited
Loading

Part of#13279

  • Removesworkspaceapps.StatsDBReporter in favor of newworkspacestats.Reporter
  • Changesworkspaceapps.StatsReporter interface method name for clarity
  • workspaceapps.StatsCollector now usesworkspacestats.Reporter.ReportAppStats()
  • The agent API and legacy API routes now useworkspacestats.Reporter.ReportAgentStats()

This is primarily just moving code, the only functional change here is that the legacy agent API routes previously only bumpedlast_used_at if there was a tracked "session connection"`, but this diverges from our new agent API where we always bump it. The behavior is now unified to always bump the field since the legacy API is on the way out.

@f0sself0ssel marked this pull request as ready for reviewMay 28, 2024 18:31
@f0sself0ssel requested a review fromjohnstcnMay 28, 2024 18:31
Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

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

LGTM, and the tests also appear to be happy.

It's nice that we now have unified behaviour between the legacy HTTP and dRPC agent APIs.

@f0sself0ssel merged commit5789ea5 intomainMay 29, 2024
27 checks passed
@f0sself0ssel deleted the f0ssel/workspacestats branchMay 29, 2024 15:49
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMay 29, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@f0sself0ssel

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@f0ssel@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp