You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using this receiver to build a custom collector, there are issues happened. The issue is as below:
go: downloading github.com/antonmedv/expr v1.15.0 go: downloading github.com/mostynb/go-grpc-compression v1.2.0 go: downloading go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.43.0 go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc go: downloading github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage v0.85.0 go: finding module for package go.opentelemetry.io/collector/processor/batchprocessor go: finding module for package go.opentelemetry.io/collector/exporter/loggingexporter go: found go.opentelemetry.io/collector/exporter/loggingexporter in go.opentelemetry.io/collector/exporter/loggingexporter v0.88.0 go: found go.opentelemetry.io/collector/processor/batchprocessor in go.opentelemetry.io/collector/processor/batchprocessor v0.88.0 go: finding module for package go.opentelemetry.io/collector/otelcol go: found go.opentelemetry.io/collector/otelcol in go.opentelemetry.io/collector/otelcol v0.88.0 go.opentelemetry.io/collector/cmd/builder imports github.com/open-telemetry/opentelemetry-collector-contrib/receiver/syslogreceiver imports go.opentelemetry.io/collector/confmap imports github.com/knadh/koanf/maps: ambiguous import: found package github.com/knadh/koanf/maps in multiple modules: github.com/knadh/koanf v1.5.0 (/Users/work_dir/go_workspace/src/prod/pkg/mod/github.com/knadh/[email protected]/maps) github.com/knadh/koanf/maps v0.1.1 (/Users/work_dir/go_workspace/src/prod/pkg/mod/github.com/knadh/koanf/[email protected]) go.opentelemetry.io/collector/cmd/builder imports github.com/open-telemetry/opentelemetry-collector-contrib/receiver/syslogreceiver imports go.opentelemetry.io/collector/confmap imports github.com/knadh/koanf/providers/confmap: ambiguous import: found package github.com/knadh/koanf/providers/confmap in multiple modules: github.com/knadh/koanf v1.5.0 (/Users/work_dir/go_workspace/src/pkg/mod/github.com/knadh/[email protected]/providers/confmap) github.com/knadh/koanf/providers/confmap v0.1.0 (/Users//work_dir/go_workspace/src/prod/pkg/mod/github.com/knadh/koanf/providers/[email protected])
Steps to Reproduce
Use below configuration yaml to create a collector:
`dist:
name: test # the binary name. Optional.
output_path: ./otel-test # the path to write the output (sources and binary). Optional.
otelcol_version: 0.85.0
As @djaglowski commented, it has been fixed in the latest release, v0.88.0. I'm going to close as fixed, but please let us know if you still hit these errors on v0.88.0.
Component(s)
receiver/syslog
What happened?
Description
When using this receiver to build a custom collector, there are issues happened. The issue is as below:
go: downloading github.com/antonmedv/expr v1.15.0 go: downloading github.com/mostynb/go-grpc-compression v1.2.0 go: downloading go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.43.0 go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc go: downloading github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage v0.85.0 go: finding module for package go.opentelemetry.io/collector/processor/batchprocessor go: finding module for package go.opentelemetry.io/collector/exporter/loggingexporter go: found go.opentelemetry.io/collector/exporter/loggingexporter in go.opentelemetry.io/collector/exporter/loggingexporter v0.88.0 go: found go.opentelemetry.io/collector/processor/batchprocessor in go.opentelemetry.io/collector/processor/batchprocessor v0.88.0 go: finding module for package go.opentelemetry.io/collector/otelcol go: found go.opentelemetry.io/collector/otelcol in go.opentelemetry.io/collector/otelcol v0.88.0 go.opentelemetry.io/collector/cmd/builder imports github.com/open-telemetry/opentelemetry-collector-contrib/receiver/syslogreceiver imports go.opentelemetry.io/collector/confmap imports github.com/knadh/koanf/maps: ambiguous import: found package github.com/knadh/koanf/maps in multiple modules: github.com/knadh/koanf v1.5.0 (/Users/work_dir/go_workspace/src/prod/pkg/mod/github.com/knadh/[email protected]/maps) github.com/knadh/koanf/maps v0.1.1 (/Users/work_dir/go_workspace/src/prod/pkg/mod/github.com/knadh/koanf/[email protected]) go.opentelemetry.io/collector/cmd/builder imports github.com/open-telemetry/opentelemetry-collector-contrib/receiver/syslogreceiver imports go.opentelemetry.io/collector/confmap imports github.com/knadh/koanf/providers/confmap: ambiguous import: found package github.com/knadh/koanf/providers/confmap in multiple modules: github.com/knadh/koanf v1.5.0 (/Users/work_dir/go_workspace/src/pkg/mod/github.com/knadh/[email protected]/providers/confmap) github.com/knadh/koanf/providers/confmap v0.1.0 (/Users//work_dir/go_workspace/src/prod/pkg/mod/github.com/knadh/koanf/providers/[email protected])
Steps to Reproduce
Use below configuration yaml to create a collector:
`dist:
name: test # the binary name. Optional.
output_path: ./otel-test # the path to write the output (sources and binary). Optional.
otelcol_version: 0.85.0
exporters:
gomod: go.opentelemetry.io/collector v0.85.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/dynatraceexporter v0.85.0
processors:
gomod: go.opentelemetry.io/collector v0.85.0
receivers:
path: ./cfreceiver
`
Expected Result
The OTEL package should be built.
Actual Result
Error happened.
Collector version
v0.79.0~v0.87.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: