-
Notifications
You must be signed in to change notification settings - Fork 203
[8.19] (backport #10922) feat: move edot in a separate package #11085
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
Conversation
* feat: introduce edot as a separate repo sub-package * chore: rename edot/pkg to edot/otelcol * go mod tidy * Update beats in edot go.mod to match agent go.mod. --------- Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com> Co-authored-by: Blake Rouse <blake.rouse@elastic.co> (cherry picked from commit c1777a5) # Conflicts: # .ci/updatecli/updatecli-bump-golang.yml # .golangci.yml # NOTICE-fips.txt # NOTICE.txt # go.mod # go.sum # internal/edot/otelcol/components_linux.go # internal/edot/otelcol/components_others.go # internal/edot/otelcol/core_components_test.go # internal/pkg/agent/cmd/common.go # internal/pkg/agent/cmd/run_unix.go # internal/pkg/otel/components_others.go # internal/pkg/otel/samples_test.go # magefile.go
|
Cherry-pick of c1777a5 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
|
This pull request has not been merged yet. Could you please review and merge it @pkoutsovasilis? 🙏 |
|
@blakerouse will need to take a look at the conflicts for this backport. |
…11154) * Fix deps that are causing mix of versions. * Update README.md. * Fix notice. * Fix more mixed state.
💚 Build Succeeded
History
cc @blakerouse |
What does this PR do?
This PR introduces EDOT (Elastic Distribution for OpenTelemetry) as a separate repository sub-package by moving code from
internal/pkg/oteltointernal/edot. This is a pure refactoring/relocation change with no functional modifications. Specifically:internal/pkg/otel/*tointernal/edot/pkg/*github.com/elastic/elastic-agent/internal/pkg/otel/...togithub.com/elastic/elastic-agent/internal/edot/pkg/...update:beats,otel:readme, etc., and scripts to reference the new package locationgo.modandgo.sumto reflect the new import pathsChanges summary: 50 files changed, +53,172 additions, -50,175 deletions (the large diff is primarily due to
go.mod/go.sum/NOTICE*.txtregeneration and mechanical import path updates)Why is it important?
This change is the second step in the incremental approach to separate EDOT from elastic-agent (as outlined in PR #9308). Introducing EDOT as a separate sub-package provides:
go.modinternal/edot/makes it straightforward to later extract it as a separate module or even repositoryThis follows the incremental approach decided by the team to split the large PR #9308 into smaller, reviewable chunks.
Checklist
./changelog/fragmentsusing the changelog toolDisruptive User Impact
None. This is a pure internal code reorganisation with no changes to functionality, APIs, configuration, or user-facing behaviour. The change is completely transparent to end users.
How to test this PR locally
Since this is a refactoring PR with no functional changes, testing focuses on ensuring everything continues to work as before, everything should work as before. So run any/all unit-test and/or integration test.
Related issues
N/A
This is an automatic backport of pull request #10922 done by Mergify.