Skip to content
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

[otelcol] split into its own module #8443

Merged

Conversation

codeboten
Copy link
Contributor

@codeboten codeboten commented Sep 14, 2023

Fixes #7924

Follows #8345

@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Patch has no changes to coverable lines.

📢 Thoughts on this report? Let us know!.

@codeboten codeboten marked this pull request as ready for review September 15, 2023 20:47
@codeboten codeboten requested a review from a team as a code owner September 15, 2023 20:47
Fixes open-telemetry#7924

Signed-off-by: Alex Boten <aboten@lightstep.com>
@codeboten codeboten merged commit 1f5ff4b into open-telemetry:main Sep 18, 2023
32 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 18, 2023
codeboten pushed a commit that referenced this pull request Oct 20, 2023
Adds `go.opentelemetry.io/collector/otelcol` to `go.mod` template for
the builder. This fixes #8692.

Since #8443, the `otelcol` folder is its own component. Before this
change, `otelcol_version` was enforced by the `collector` module
dependency:

https://github.com/open-telemetry/opentelemetry-collector/blob/287b98f6973fd6baa278150b9fca8c83abea0af4/cmd/builder/internal/builder/templates/go.mod.tmpl#L23

After this change, the `go mod tidy` step here:

https://github.com/open-telemetry/opentelemetry-collector/blob/287b98f6973fd6baa278150b9fca8c83abea0af4/cmd/builder/internal/builder/main.go#L115

will add the latest available version for the `otelcol` module since
none of the components actually depend on it. For example, with the
`v0.86.0` builder config the output is as follows:

```
❯ go mod tidy -v -compat=1.20
go: finding module for package go.opentelemetry.io/collector/otelcol
go: found go.opentelemetry.io/collector/otelcol in go.opentelemetry.io/collector/otelcol v0.87.0
```

Explicitly adding `otelcol` makes it so the `otelcol_version` is
correctly honored.

**Link to tracking Issue:** Fixes #8692
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split core into more granular modules: otelcol
2 participants