| 1 |
// Copyright The OpenTelemetry Authors |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows |
| 5 |
|
| 6 |
package resource // import "go.opentelemetry.io/otel/sdk/resource" |
| 7 |
|
| 8 |
// hostIDReaderUnsupported is a placeholder implementation for operating systems |
| 9 |
// for which this project currently doesn't support host.id |
| 10 |
// attribute detection. See build tags declaration early on this file |
| 11 |
// for a list of unsupported OSes. |
| 12 |
type hostIDReaderUnsupported struct{} |
| 13 |
|
| 14 |
func (*hostIDReaderUnsupported) read() (string, error) { |
| 15 |
return "<unknown>", nil |
| 16 |
} |
| 17 |
|
| 18 |
var platformHostIDReader hostIDReader = &hostIDReaderUnsupported{} |