[EDOT] - add header setter extension#9903
Conversation
|
This pull request does not have a backport label. Could you fix it @VihasMakwana? 🙏
|
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
swiatekm
left a comment
There was a problem hiding this comment.
Can you add the extension to tests which ensure the components we ship actually start correctly? https://github.com/elastic/elastic-agent/blob/main/internal/pkg/otel/testdata/all-components.yml for example.
1931466 to
7f439e5
Compare
|
Do we need to backport this? |
|
I'm seeing the same test failures here as in #9952, which suggests broader breakage. |
|
@VihasMakwana can you rebase on main? This should fix the test failures. |
⏳ Build in-progress, with failures
Failed CI StepsHistory
|
|
* add header setter extensions * go.mod and notice * revert otel.yml * add header setter to test config * spelling * go.mod * doc (cherry picked from commit 593a8b9) # Conflicts: # go.mod # internal/pkg/otel/components.go
* add header setter extensions * go.mod and notice * revert otel.yml * add header setter to test config * spelling * go.mod * doc (cherry picked from commit 593a8b9) # Conflicts: # go.mod # internal/pkg/otel/components.go
| "go.opentelemetry.io/collector/receiver" | ||
|
|
||
| // Receivers: | ||
| headersetterextension "github.com/open-telemetry/opentelemetry-collector-contrib/extension/headerssetterextension" |
There was a problem hiding this comment.
It is not a receiver, extension section is below (lines 63 and down) @swiatekm @VihasMakwana
There was a problem hiding this comment.
noticed because it caused some merge conflicts in #9858
* [EDOT] - add header setter extension (#9903) * add header setter extensions * go.mod and notice * revert otel.yml * add header setter to test config * spelling * go.mod * doc (cherry picked from commit 593a8b9) # Conflicts: # go.mod # internal/pkg/otel/components.go * notice and conflicts --------- Co-authored-by: Vihas Makwana <121151420+VihasMakwana@users.noreply.github.com> Co-authored-by: Vihas <vihas.makwana@elastic.co>
* [EDOT] - add header setter extension (#9903) * add header setter extensions * go.mod and notice * revert otel.yml * add header setter to test config * spelling * go.mod * doc (cherry picked from commit 593a8b9) # Conflicts: # go.mod # internal/pkg/otel/components.go * notice and conflicts --------- Co-authored-by: Vihas Makwana <121151420+VihasMakwana@users.noreply.github.com> Co-authored-by: Vihas <vihas.makwana@elastic.co>
* add header setter extensions * go.mod and notice * revert otel.yml * add header setter to test config * spelling * go.mod * doc




What does this PR do?
This PR adds headersettetextension to EDOT.
Why is it important?
This extension is pretty useful to set headers based on request context/based on the configurations and can be helpful to route requests to various backends. We recently got an issue for same.
./changelog/fragmentsusing the changelog toolDisruptive User Impact
How to test this PR locally
Related issues