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: add automatic logging config to support debug logging #754

Merged
merged 18 commits into from
Dec 2, 2024

Conversation

ohmayr
Copy link
Contributor

@ohmayr ohmayr commented Nov 4, 2024

Implement automatic logging config to allow users to enable debug logging via an environment variable.

Fixes b/381099872

@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Nov 4, 2024
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Nov 11, 2024
google/api_core/client_logging.py Outdated Show resolved Hide resolved
google/api_core/client_logging.py Outdated Show resolved Hide resolved
google/api_core/client_logging.py Outdated Show resolved Hide resolved
google/api_core/client_logging.py Outdated Show resolved Hide resolved
tests/unit/test_client_logging.py Outdated Show resolved Hide resolved
tests/unit/test_client_logging.py Show resolved Hide resolved
@ohmayr ohmayr changed the title feat: add base logger to enable debug logging feat: add automatic logging config to support debug logging Nov 25, 2024
google/api_core/client_logging.py Outdated Show resolved Hide resolved
tests/unit/test_client_logging.py Outdated Show resolved Hide resolved
google/api_core/client_logging.py Outdated Show resolved Hide resolved
tests/unit/test_client_logging.py Outdated Show resolved Hide resolved
tests/unit/test_client_logging.py Outdated Show resolved Hide resolved
tests/unit/test_client_logging.py Outdated Show resolved Hide resolved
@ohmayr ohmayr marked this pull request as ready for review November 26, 2024 18:48
@ohmayr ohmayr requested review from a team as code owners November 26, 2024 18:48
google/api_core/client_logging.py Outdated Show resolved Hide resolved
google/api_core/client_logging.py Show resolved Hide resolved
tests/unit/test_client_logging.py Outdated Show resolved Hide resolved
tests/unit/test_client_logging.py Show resolved Hide resolved
tests/unit/test_client_logging.py Outdated Show resolved Hide resolved
tests/unit/test_client_logging.py Show resolved Hide resolved
google/api_core/client_logging.py Show resolved Hide resolved
@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Nov 27, 2024
google/api_core/client_logging.py Outdated Show resolved Hide resolved
google/api_core/client_logging.py Outdated Show resolved Hide resolved
google/api_core/client_logging.py Outdated Show resolved Hide resolved
# Fields to be included in the StructuredLogFormatter.
#
# TODO(https://github.com/googleapis/python-api-core/issues/761): Update this list to support additional logging fields.
_recognized_logging_fields = [
Copy link
Collaborator

Choose a reason for hiding this comment

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

One thing to note is that users will need to update google-api-core to get any additional logging fields in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is true. Any fields that we add in the future will require users to update google-api-core.

@parthea parthea merged commit d18d9b5 into main Dec 2, 2024
44 checks passed
@parthea parthea deleted the debug-logging branch December 2, 2024 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants