We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 952f5c7 commit 067b100Copy full SHA for 067b100
1 file changed
cmd/root/otel.go
@@ -68,8 +68,6 @@ func initOTelSDK(ctx context.Context) (err error) {
68
return nil
69
}
70
71
-// isLocalhostEndpoint reports whether the given endpoint refers to a
72
-// loopback address so that we can safely skip TLS.
73
func newOTelResource() (*resource.Resource, error) {
74
return resource.Merge(
75
resource.Default(),
@@ -81,6 +79,8 @@ func newOTelResource() (*resource.Resource, error) {
81
79
)
82
80
83
+// isLocalhostEndpoint reports whether the given endpoint refers to a
+// loopback address so that we can safely skip TLS.
84
func isLocalhostEndpoint(endpoint string) bool {
85
host := endpoint
86
// Strip port if present.
0 commit comments