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

Add request id to HTTP transactions to allow tracking. #28590

Merged
merged 2 commits into from
Nov 1, 2021

Conversation

scunningham
Copy link

What does this PR do?

Adds the "X-Request-ID" header to HTTP transactions with Fleet Server.

Why is it important?

This allows tracking of the transaction through the cloud proxy and into Fleet Server. The request Id can be aligned across log entries.

Checklist

  • [x ] My code follows the style guidelines of this project
  • [x ] I have commented my code, particularly in hard-to-understand areas
    - [ ] I have made corresponding changes to the documentation
    - [ ] I have made corresponding change to the default configuration files
  • [x ] I have added tests that prove my fix is effective or that my feature works
    - [ ] I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 21, 2021
@mergify
Copy link
Contributor

mergify bot commented Oct 21, 2021

This pull request does not have a backport label. Could you fix it @scunningham? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v./d./d./d is the label to automatically backport to the 7./d branch. /d is the digit

NOTE: backport-skip has been added to this pull request.

@mergify mergify bot added the backport-skip Skip notification from the automated backport with mergify label Oct 21, 2021
@elasticmachine
Copy link
Collaborator

elasticmachine commented Oct 21, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-11-01T17:45:47.717+0000

  • Duration: 17 min 50 sec

  • Commit: 48b8b49

❕ Flaky test report

No test was executed to be analysed.

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

@aleksmaus aleksmaus requested a review from lykkin October 21, 2021 15:46
@scunningham scunningham added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Oct 21, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Oct 21, 2021
@scunningham
Copy link
Author

/test

2 similar comments
@scunningham
Copy link
Author

/test

@scunningham
Copy link
Author

/test

@scunningham
Copy link
Author

/test

@scunningham scunningham merged commit 6288ccc into elastic:master Nov 1, 2021
@scunningham scunningham deleted the feature/agent_reqid branch November 1, 2021 18:52
@scunningham scunningham added the backport-v8.0.0 Automated backport with mergify label Dec 7, 2021
mergify bot pushed a commit that referenced this pull request Dec 7, 2021
* Add request id to HTTP transactions to allow tracking through the proxy into Fleet Server and back.

* Linter fix

(cherry picked from commit 6288ccc)
@scunningham scunningham removed the backport-skip Skip notification from the automated backport with mergify label Dec 7, 2021
scunningham pushed a commit that referenced this pull request Dec 7, 2021
* Add request id to HTTP transactions to allow tracking through the proxy into Fleet Server and back.

* Linter fix

(cherry picked from commit 6288ccc)

Co-authored-by: Sean Cunningham <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v8.0.0 Automated backport with mergify enhancement Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants