Skip to content

Conversation

fujiwara
Copy link
Collaborator

@fujiwara fujiwara commented Aug 2, 2025

Summary

  • Migrate from stdlog to slog throughout the application
  • Optimize custom slog handler with buffer pre-allocation and caching
  • Update raus dependency to v0.3.0 for slog integration

🤖 Generated with Claude Code

fujiwara and others added 4 commits August 2, 2025 15:15
- Upgrade fujiwara/raus from v0.2.0 to v0.3.0
- Enables slog integration support for Redis auto-assignment

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Replace stdlog with slog throughout main.go
- Integrate with raus v0.3.0 SetSlogLogger API
- Improve structured logging with key-value pairs
- Fix typo: "muset" -> "must" in worker-id flag description

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Pre-allocate buffer with estimated size to reduce allocations
- Add caching for source file paths using sync.Map
- Optimize common value types (string, int, bool, float64) formatting
- Optimize common log levels with direct string literals
- Use strconv.AppendInt/AppendFloat for better performance
- Add io.Writer field and sync.Map cache to customHandler struct

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Expand CLAUDE.md with comprehensive project architecture overview
- Document multi-protocol support and auto worker ID assignment
- Add detailed build & deployment options and tools
- Include development practices for code patterns and testing
- Document dependencies and their purposes

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@fujiwara fujiwara merged commit e65083e into v2 Aug 2, 2025
8 checks passed
@fujiwara fujiwara deleted the feature/improve-logging-performance branch August 2, 2025 06:22
@github-actions github-actions bot mentioned this pull request Aug 2, 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.

1 participant