From 910bb8d0ea580770e02cf2d711575999f56428af Mon Sep 17 00:00:00 2001 From: Michal Pristas Date: Wed, 19 Jun 2024 17:32:35 +0200 Subject: [PATCH] do not use otel for windows --- internal/pkg/agent/cmd/common.go | 5 ----- internal/pkg/agent/cmd/otel_flags.go | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/pkg/agent/cmd/common.go b/internal/pkg/agent/cmd/common.go index b30aee40929..dd8d19d7f11 100644 --- a/internal/pkg/agent/cmd/common.go +++ b/internal/pkg/agent/cmd/common.go @@ -21,11 +21,6 @@ import ( "github.com/elastic/elastic-agent/version" ) -const ( - otelConfigFlagName = "config" - otelSetFlagName = "set" -) - func troubleshootMessage() string { v := strings.Split(release.Version(), ".") version := strings.Join(v[:2], ".") diff --git a/internal/pkg/agent/cmd/otel_flags.go b/internal/pkg/agent/cmd/otel_flags.go index 5c7413e5230..6f3905bae16 100644 --- a/internal/pkg/agent/cmd/otel_flags.go +++ b/internal/pkg/agent/cmd/otel_flags.go @@ -18,6 +18,11 @@ import ( "github.com/elastic/elastic-agent/internal/pkg/agent/application/paths" ) +const ( + otelConfigFlagName = "config" + otelSetFlagName = "set" +) + func setupOtelFlags(flags *pflag.FlagSet) { flags.StringArray(otelConfigFlagName, []string{}, "Locations to the config file(s), note that only a"+ " single location can be set per flag entry e.g. `--config=file:/path/to/first --config=file:path/to/second`.")