(hostname string)
| 1958 | } |
| 1959 | |
| 1960 | func getGCEInstanceID(hostname string) string { |
| 1961 | instanceID, err := metadata.InstanceIDWithContext(context.Background()) |
| 1962 | if err != nil { |
| 1963 | return hostname |
| 1964 | } |
| 1965 | return instanceID |
| 1966 | } |
| 1967 | |
| 1968 | func consoleLogger(skipFrameCount int) *zerodriver.Logger { |
| 1969 | l := zerolog.New( |