diff options
Diffstat (limited to 'vendor/github.com/authzed/spicedb/internal/graph/traceid.go')
| -rw-r--r-- | vendor/github.com/authzed/spicedb/internal/graph/traceid.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/authzed/spicedb/internal/graph/traceid.go b/vendor/github.com/authzed/spicedb/internal/graph/traceid.go new file mode 100644 index 0000000..e275bc5 --- /dev/null +++ b/vendor/github.com/authzed/spicedb/internal/graph/traceid.go @@ -0,0 +1,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() +} |
