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

feat(ErrorReporting): Generate HttpRequestContext for log context. #5656

Merged
merged 3 commits into from
Jul 31, 2023

Conversation

westy92
Copy link
Contributor

@westy92 westy92 commented Nov 28, 2022

Adding code to generate context.httpRequest as mentioned in the docs.

@westy92 westy92 requested review from a team as code owners November 28, 2022 02:30
@conventional-commit-lint-gcf
Copy link

conventional-commit-lint-gcf bot commented Nov 28, 2022

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@product-auto-label product-auto-label bot added the api: clouderrorreporting Issues related to the Error Reporting API. label Nov 28, 2022
@westy92 westy92 force-pushed the add-http-request-info branch from 5c96744 to dd02ae2 Compare November 28, 2022 02:32
@bshaffer bshaffer self-assigned this May 9, 2023
Comment on lines 183 to 186
} finally {
// restore
$_SERVER = $oldServer;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A way to get around doing this type of thing is to just add @runInSeparateProcess for PHPUnit, and then modifying the $_SERVER will only affect this test

ErrorReporting/tests/Unit/BootstrapTest.php Outdated Show resolved Hide resolved
ErrorReporting/tests/Unit/BootstrapTest.php Show resolved Hide resolved
@bshaffer
Copy link
Contributor

@westy92 thank you for this amazing contribution!

@bshaffer bshaffer enabled auto-merge (squash) July 31, 2023 19:22
@bshaffer bshaffer merged commit e2c9d07 into googleapis:main Jul 31, 2023
@westy92 westy92 deleted the add-http-request-info branch July 31, 2023 22:23
@westy92
Copy link
Contributor Author

westy92 commented Jul 31, 2023

You're welcome, thanks for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: clouderrorreporting Issues related to the Error Reporting API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants