Skip to content

Commit 067b100

Browse files
committed
fix(otel): move localhost helper comment
1 parent 952f5c7 commit 067b100

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/root/otel.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ func initOTelSDK(ctx context.Context) (err error) {
6868
return nil
6969
}
7070

71-
// isLocalhostEndpoint reports whether the given endpoint refers to a
72-
// loopback address so that we can safely skip TLS.
7371
func newOTelResource() (*resource.Resource, error) {
7472
return resource.Merge(
7573
resource.Default(),
@@ -81,6 +79,8 @@ func newOTelResource() (*resource.Resource, error) {
8179
)
8280
}
8381

82+
// isLocalhostEndpoint reports whether the given endpoint refers to a
83+
// loopback address so that we can safely skip TLS.
8484
func isLocalhostEndpoint(endpoint string) bool {
8585
host := endpoint
8686
// Strip port if present.

0 commit comments

Comments
 (0)