Add an in-process otel collector #76
style.yaml
on: pull_request
check gofmt
12s
check goimports
23s
golangci-lint
2m 10s
Lint
4m 14s
Annotations
8 errors
check gofmt:
pkg/otel/doc.go#L1
Please run gofmt -s.
diff --git a/pkg/otel/doc.go b/pkg/otel/doc.go
index 72149b9..bc6771c 100644
--- a/pkg/otel/doc.go
+++ b/pkg/otel/doc.go
@@ -8,12 +8,12 @@
// The main function to use is StartCollectorAsync, which starts the
// collector asynchronously,
//
-// shutdown, runErr, err := otel.StartCollectorAsync(ctx)
-// if err != nil {
-// // handle errors
-// }
-// defer shutdown()
-// // ... optionally wait for runErr and process it.
+// shutdown, runErr, err := otel.StartCollectorAsync(ctx)
+// if err != nil {
+// // handle errors
+// }
+// defer shutdown()
+// // ... optionally wait for runErr and process it.
//
// The prometheus endpoint is expected to be serving at localhost:9090/metrics.
package otel
|
check gofmt
Process completed with exit code 1.
|
check goimports:
pkg/otel/doc.go#L1
Please run goimports.
diff --git a/pkg/otel/doc.go b/pkg/otel/doc.go
index 72149b9..bc6771c 100644
--- a/pkg/otel/doc.go
+++ b/pkg/otel/doc.go
@@ -8,12 +8,12 @@
// The main function to use is StartCollectorAsync, which starts the
// collector asynchronously,
//
-// shutdown, runErr, err := otel.StartCollectorAsync(ctx)
-// if err != nil {
-// // handle errors
-// }
-// defer shutdown()
-// // ... optionally wait for runErr and process it.
+// shutdown, runErr, err := otel.StartCollectorAsync(ctx)
+// if err != nil {
+// // handle errors
+// }
+// defer shutdown()
+// // ... optionally wait for runErr and process it.
//
// The prometheus endpoint is expected to be serving at localhost:9090/metrics.
package otel
|
check goimports
Process completed with exit code 1.
|
golangci-lint:
pkg/otel/doc.go#L11
File is not `gofmt`-ed with `-s` (gofmt)
|
golangci-lint:
pkg/otel/doc.go#L11
File is not `goimports`-ed (goimports)
|
golangci-lint:
pkg/otel/components.go#L71
G306: Expect WriteFile permissions to be 0600 or less (gosec)
|
golangci-lint
issues found
|