GoogleCloudPlatform / golang-samples

Sample apps and code written for Google Cloud in the Go programming language.
Apache License 2.0
4.29k stars 1.73k forks source link

opentelemetry/instrumentation: failed to get config: cannot resolve the configuration: cannot convert the confmap.Conf #4346

Closed coderkakarrot closed 2 weeks ago

coderkakarrot commented 1 month ago

In which file did you encounter the issue?

opentelemetry/instrumentation

Did you change the file? If so, how?

No

Describe the issue

When running the example in opentelemetry/instrumentation with the command docker compose up --abort-on-container-exit, I encountered the following error:

Error: failed to get config: cannot resolve the configuration: cannot convert the confmap.Conf: variable substitution using $VAR has been deprecated in favor of ${VAR} and ${env:VAR} - please update $GOOGLE_CLOUD_PROJECT or temporarily disable the confmap.unifyEnvVarExpansion feature gate

I have executed the command in the Google cloud shell

Thanks!

coderkakarrot commented 1 month ago

I found issue was occurring due to breaking change in this commit: https://github.com/open-telemetry/opentelemetry-collector/commit/91d6525f52a4b20b39a5d4062d55e08ddc3dd4bb#