Skip to content

Feat telegram api outbound logging#51

Open
rizkidarmawan21 wants to merge 2 commits intoDominux:mainfrom
rizkidarmawan21:feat/telegram-api-logging
Open

Feat telegram api outbound logging#51
rizkidarmawan21 wants to merge 2 commits intoDominux:mainfrom
rizkidarmawan21:feat/telegram-api-logging

Conversation

@rizkidarmawan21
Copy link

Add JSON formatted HTTP outbound logging for Telegram API requests.

Example

{"status":200,"method":"POST","url":"https://api.telegram.org/bot***/sendDocument","body":{"chat_id":-1003658617490,"file_size_bytes":47804},"response":{"telegram_file_id":"BQACAgI..."},"elapsed_ms":1523}

- Add JSON formatted logging for all Telegram API HTTP requests
- Log request: status, method, url, body
- Log response with elapsed_ms
- Mask bot token in URL for security
- Add serde_json dependency for JSON logging
@rizkidarmawan21 rizkidarmawan21 changed the title Feat/telegram api logging Feat telegram api outbound logging Jan 18, 2026
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