Skip to content

Commit

Permalink
Add back trace ID comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepeterson committed Apr 4, 2022
1 parent 80a07d3 commit a7654ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/nanomdm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ func main() {
logger.Info(logs...)
}

// newTraceID generates a new HTTP trace ID for context logging.
// Currently this just makes a random string. This would be better
// served by e.g. https://github.com/oklog/ulid or something like
// https://opentelemetry.io/ someday.
func newTraceID() string {
b := make([]byte, 8)
rand.Read(b)
Expand Down

0 comments on commit a7654ff

Please sign in to comment.