Skip to content

Conversation

@matheusandrades
Copy link

  • Add live mode toggle for real-time log streaming
  • Replace WebSocket approach with HTTP polling every 2 seconds
  • Implement timeframe-based queries to fetch only new entries
  • Support both application-specific and global logs views
  • Reduce ClickHouse load compared to frequent WebSocket queries
  • Maintain same user experience with more efficient backend approach

Technical details:

  • AppLogs.vue: Use $api.getLogs with time range parameters
  • Logs.vue: Use $api.getOverview with time range in query JSON
  • Remove WebSocket endpoints and dependencies from backend
  • Client manages timestamp tracking to avoid duplicates
  • 2-second polling interval balances real-time feel with performance

- Add live mode toggle for real-time log streaming
- Replace WebSocket approach with HTTP polling every 2 seconds
- Implement timeframe-based queries to fetch only new entries
- Support both application-specific and global logs views
- Reduce ClickHouse load compared to frequent WebSocket queries
- Maintain same user experience with more efficient backend approach

Technical details:
- AppLogs.vue: Use $api.getLogs with time range parameters
- Logs.vue: Use $api.getOverview with time range in query JSON
- Remove WebSocket endpoints and dependencies from backend
- Client manages timestamp tracking to avoid duplicates
- 2-second polling interval balances real-time feel with performance
- Run prettier on Vue files (AppLogs.vue, Logs.vue)
- Run gofmt on Go files (api/api.go)
- Fix code style issues identified by CI/CD pipeline

No functional changes, only formatting adjustments to pass
automated code quality checks.
@apetruhin
Copy link
Member

Thank you for the contribution.
Could you please revert the unnecessary changes in the *.go files and remove all console.error/warn/log statements?

- Remove unnecessary comment in api/api.go
- Remove unnecessary blank lines in main.go
@matheusandrades
Copy link
Author

Done @apetruhin

@apetruhin
Copy link
Member

Thanks for working on this. We've decided to implement this feature ourselves, as it requires some server-side changes.

#669

@apetruhin apetruhin closed this Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants