From 0e65d954f27c3d34e28c0b62f21e569126c4a9b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Ma=C5=82ek?= Date: Fri, 1 Oct 2021 19:40:13 +0200 Subject: [PATCH] Upgrade to OpenTelemetry Collector 0.36.0 (#76) --- README.md | 8 ++++---- internal/builder/config.go | 2 +- internal/scaffold/main.go | 4 ++-- test/nocore.builder.yaml | 2 +- test/replaces.builder.yaml | 8 ++++---- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index b8548efc8a8..c991a5abca4 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This program generates a custom OpenTelemetry Collector binary based on a given $ GO111MODULE=on go get github.com/open-telemetry/opentelemetry-collector-builder $ cat > ~/.otelcol-builder.yaml < /tmp/otelcol.yaml < github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.35.0 + - github.com/open-telemetry/opentelemetry-collector-contrib/internal/common => github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.36.0 ``` diff --git a/internal/builder/config.go b/internal/builder/config.go index b6d0ecdd9c4..fa253e8822a 100644 --- a/internal/builder/config.go +++ b/internal/builder/config.go @@ -27,7 +27,7 @@ import ( "go.uber.org/zap" ) -const defaultOtelColVersion = "0.35.0" +const defaultOtelColVersion = "0.36.0" // ErrInvalidGoMod indicates an invalid gomod var ErrInvalidGoMod = errors.New("invalid gomod specification for module") diff --git a/internal/scaffold/main.go b/internal/scaffold/main.go index 78760b6b9c6..ddf60f52bbf 100644 --- a/internal/scaffold/main.go +++ b/internal/scaffold/main.go @@ -58,8 +58,8 @@ func main() { log.Fatalf("failed to construct the application: %v", err) } - err = app.Run() - if err != nil { + cmd := service.NewCommand(app) + if err = cmd.Execute(); err != nil { log.Fatalf("application run finished with error: %v", err) } } diff --git a/test/nocore.builder.yaml b/test/nocore.builder.yaml index b68c19acf21..49dec4b2002 100644 --- a/test/nocore.builder.yaml +++ b/test/nocore.builder.yaml @@ -1,6 +1,6 @@ dist: module: github.com/open-telemetry/opentelemetry-collector-builder/test/nocore - otelcol_version: 0.35.0 + otelcol_version: 0.36.0 include_core: false receivers: diff --git a/test/replaces.builder.yaml b/test/replaces.builder.yaml index d03e04794ae..939912e2730 100644 --- a/test/replaces.builder.yaml +++ b/test/replaces.builder.yaml @@ -1,10 +1,10 @@ dist: module: github.com/open-telemetry/opentelemetry-collector-builder/test/replaces - otelcol_version: 0.35.0 + otelcol_version: 0.36.0 processors: - - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/routingprocessor v0.35.0 - - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor v0.35.0 + - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/routingprocessor v0.36.0 + - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor v0.36.0 replaces: - - github.com/open-telemetry/opentelemetry-collector-contrib/internal/common => github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.35.0 + - github.com/open-telemetry/opentelemetry-collector-contrib/internal/common => github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.36.0