mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
feat: initial tracing support (#1623)
This commit is contained in:
@@ -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.
|
||||
//
|
||||
|
Reference in New Issue
Block a user