1d49f5c84e
Adds a new gRPC endpoint to get envoy bootstrap params. The new consul-dataplane service will use this endpoint to generate an envoy bootstrap configuration.
14 lines
288 B
Go
14 lines
288 B
Go
package public
|
|
|
|
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
|
|
}
|