feat: initial tracing support (#1623)

This commit is contained in:
Dominik Süß
2023-05-09 19:19:48 +02:00
committed by GitHub
parent 878ed48de3
commit 6392e00653
472 changed files with 102600 additions and 12 deletions

View File

@@ -65,9 +65,8 @@ func generateID() string {
// AddRequestID returns a gin middleware which adds a unique ID to each request (both response header and context).
func AddRequestID(header string) gin.HandlerFunc {
return func(c *gin.Context) {
// Look for existing ID.
id := c.GetHeader(header)
// Have we found anything?
if id == "" {
// Generate new ID.
//