Skip to content

Add an in-process otel collector #76

Add an in-process otel collector

Add an in-process otel collector #76

Triggered via pull request December 21, 2023 12:22
Status Failure
Total duration 4m 26s
Artifacts

style.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

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