Skip to content

Commit

Permalink
do not use otel for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
michalpristas committed Jun 19, 2024
1 parent 317c118 commit 910bb8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/pkg/agent/cmd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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], ".")
Expand Down
5 changes: 5 additions & 0 deletions internal/pkg/agent/cmd/otel_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`.")
Expand Down

0 comments on commit 910bb8d

Please sign in to comment.