Update Go module dependencies and enhance NATS consumer metrics. Add github.com/kylelemons/godebug as an indirect dependency. Upgrade github.com/prometheus/common to version 0.67.3. Change NATS consumer mode to "jetstream" in the development configuration. Improve observability by ensuring metrics for pending messages are initialized and recorded correctly in JetStream mode. Update documentation to reflect changes in metrics handling and consumer behavior.

This commit is contained in:
windyboy
2025-11-19 16:49:53 +08:00
parent f01dd3bf1f
commit 8914156a58
10 changed files with 261 additions and 49 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ url = "nats://localhost:4222"
# * Dead-letter queue (DLQ) support
# * Batch processing and consumer monitoring
# * Recommended for production environments
mode = "core"
mode = "jetstream"
client = "serial-client"
cluster = "tele-cluster"
stream = "TELEGRAM"