blob: e275bc5adbc53bbaef5e6d56656386e4d0d20c67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package graph
import (
"github.com/google/uuid"
)
// NewTraceID generates a new trace ID. The trace IDs will only be unique with
// a single dispatch request tree and should not be used for any other purpose.
// This function currently uses the UUID library to generate a new trace ID,
// which means it should not be invoked from performance-critical code paths.
func NewTraceID() string {
return uuid.NewString()
}
|