2022-07-13 15:33:48 +00:00
|
|
|
package external
|
2022-04-20 00:24:21 +00:00
|
|
|
|
|
|
|
import "github.com/hashicorp/go-uuid"
|
|
|
|
|
|
|
|
// We tag logs with a unique identifier to ease debugging. In the future this
|
|
|
|
// should probably be a real Open Telemetry trace ID.
|
|
|
|
func TraceID() string {
|
|
|
|
id, err := uuid.GenerateUUID()
|
|
|
|
if err != nil {
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
return id
|
|
|
|
}
|