-
Notifications
You must be signed in to change notification settings - Fork 1.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
useless warning about ocb version missmatch #10514
Comments
This usually means that the version being built by the configuration doesn't match the version of ocb that is building it, this could cause the compilation of the binary to fail. Maybe the message should include this information to clarify what the end user action should be? |
Got it . Would help to tell that collector version in XX and ocb YY -> not equal, so potential issues |
For sure, would you like to open a PR to apply the change? |
Well, if you point me out where this logic currently lives .and i am sure i would need to go through some approval required general for each committer on this project first, don't i. |
The error message lives here:
And right, the PR would need to be reviewed and approved and you'd need to sign the CLA if you haven't already done so https://opentelemetry.io/docs/contributing/requirements/#sign-the-cla. |
) #### Description Refine the warning message to make it useful for the end user. #### Link to tracking issue Fixes #10514 #### Testing Locally tested. ```sh 2024-07-31T22:03:05.984+0900 INFO internal/command.go:125 OpenTelemetry Collector Builder {"version": "(devel)"} 2024-07-31T22:03:05.984+0900 INFO internal/command.go:136 Using default build configuration 2024-07-31T22:03:05.985+0900 INFO builder/config.go:142 Using go {"go-executable": "/usr/local/bin/go"} 2024-07-31T22:03:05.985+0900 INFO builder/main.go:77 You're building a distribution with non-aligned version of the builder. The version mismatch may cause the compilation failure. It's recommended to use the same version. {"collector-version": "0.104.0", "builder-version": "0.106.1"} 2024-07-31T22:03:05.985+0900 INFO builder/main.go:100 Sources created {"path": "/tmp/otelcol-distribution3869530617"} 2024-07-31T22:03:06.510+0900 INFO builder/main.go:191 Getting go modules 2024-07-31T22:03:06.552+0900 INFO builder/main.go:111 Compiling 2024-07-31T22:03:07.080+0900 INFO builder/main.go:130 Compiled {"binary": "/tmp/otelcol-distribution3869530617/otelcorecol"} ``` #### Documentation N/A #### Note I did not add a changelog entry because other PRs that only changed logging messages and behavior did not add it too. If this is an incorrect understanding, please point it out. --------- Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Below warning makes no sense to me
2024-07-02T16:42:35.279Z INFO internal/command.go:125 OpenTelemetry Collector Builder {"version": "0.102.0", "date": "2024-06-04T08:26:04Z"}
2024-07-02T16:42:35.281Z INFO internal/command.go:161 Using config file {"path": "cta/builder-dev.yaml"}
2024-07-02T16:42:35.281Z INFO builder/config.go:132 Using go {"go-executable": "/usr/local/go/bin/go"}
2024-07-02T16:42:35.281Z INFO builder/main.go:77 You're building a distribution with non-aligned version of the builder. Compilation may fail due to API changes. Please upgrade your builder or API {"builder-version": "0.102.0"}
The text was updated successfully, but these errors were encountered: