-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
googlecloudexporter not compiling above v0.61.0 #17899
Comments
Pinging code owners: See Adding Labels via Comments if you do not have permissions to add labels yourself. |
It looks like the configtest package was removed in v0.65.0 from the collector: open-telemetry/opentelemetry-collector#6542 In this case, the collector builder seems to be trying to import from latest (v0.69.1) even though you have v0.63.0 specified, so that's the conflict. I'm not sure why that is, but I'll take a deeper look and try reproducing |
@ljulliar in your builder config, the loggingexporter gomod is wrong for v0.63.0. When I update to the following, it works: receivers:
- import: go.opentelemetry.io/collector/receiver/otlpreceiver
gomod: go.opentelemetry.io/collector v0.63.0
- import: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver
gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver v0.63.0
processors:
- import: github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor
gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor v0.63.0
- import: github.com/open-telemetry/opentelemetry-collector-contrib/processor/redactionprocessor
gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/redactionprocessor v0.63.0
- import: go.opentelemetry.io/collector/processor/memorylimiterprocessor
gomod: go.opentelemetry.io/collector v0.63.0
- import: go.opentelemetry.io/collector/processor/batchprocessor
gomod: go.opentelemetry.io/collector v0.63.0
exporters:
- import: go.opentelemetry.io/collector/exporter/loggingexporter
gomod: go.opentelemetry.io/collector/exporter/loggingexporter v0.63.0
- import: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudexporter
gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudexporter v0.63.0
|
I'm having the same issue - why exactly does specifying the specific exporter help? It seems like they should be importing the same thing because it's the same version number. |
@jessberg around that version, the default upstream components started moving to their own Go modules (open-telemetry/opentelemetry-collector#5992). In v0.63.0, only the logging exporter was affected out of the ones in this config. If you try to build a collector using the latest version, you would need to make a similar change for otlpreceiver, memorylimiterprocessor, and batchprocessor too. I'll update our samples repo to reflect these changes in the latest versions, but otherwise I think we can close this issue. |
Makes sense; thanks so much! |
@dashpole can you close this? Think we resolved it, thanks |
@dashpole
It can be fixed by removing the command line arguments in the Makefile and adding the following section in the builder-config.yaml
|
Thanks @ljulliar, we'll fix that in our scripts for the sample. For the future you can feel free to open issues directly in https://github.com/GoogleCloudPlatform/opentelemetry-collector-builder-sample for problems with the GCP examples |
Component(s)
exporter/googlecloud
What happened?
Description
googlecloudexporter will not compile with revision higher than 0.61.0
Steps to Reproduce
Use the local build process from https://github.com/GoogleCloudPlatform/opentelemetry-collector-builder-sample/tree/main/build/local
Adjust version in Makefile and in builder-config.yaml. Up to 0.61.0 the compilation will work
Expected Result
The custom version of otelcol should compile
Actual Result
If you use any version higher than 0.61.0 you'll always obtain the same error and the compilation will stop (see below)
Collector version
0.63.0+
Environment information
Environment
OS: Debian 12
Compiler(if manually compiled): go version go1.19.4 linux/amd64
OpenTelemetry Collector configuration
Log output
The text was updated successfully, but these errors were encountered: