MsgID

The MsgID Middleware automatically assigns a unique identifier (MsgID) to each request. This helps with tracking, debugging, and log correlation in distributed systems.

🎯 Automatically generates a unique MsgID for every incoming request.

⏳ Ensures traceability across microservices and distributed applications.

🔑 Adds the MsgID to both request and response headers.

⚡ Lightweight & fast, with minimal performance overhead.

✅ Key Features

🆔 Adds a MsgID to each request for tracking and correlation.

🔄 No need for manual MsgID creation, added seamlessly.

📊 Makes log analysis easier by attaching request identifiers.

🚀 Minimal performance impact, operates efficiently.


// Function signature
q.Use(msgid.New())
                        
routing.go