Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 58
chore!: deprecate AppEngineHandler and ContainerEngineHandler #298
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
455f8c0f6f70af761a4c0cf789edf6cb335c6b2b05a7bec22d62c4210b8ecde6ce4b9e6aea1737b77ef0a5f6a905576128db7c131cc476fa516ab17bba573741892afa88f43c935fdb8File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| Structured Log Handler | ||
| ==================================== | ||
| .. automodule:: google.cloud.logging_v2.handlers.structured_log | ||
| :members: | ||
| :show-inheritance: |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -35,8 +35,6 @@ | ||
| from google.cloud.logging_v2._http import _MetricsAPI as JSONMetricsAPI | ||
| from google.cloud.logging_v2._http import _SinksAPI as JSONSinksAPI | ||
| from google.cloud.logging_v2.handlers import CloudLoggingHandler | ||
| from google.cloud.logging_v2.handlers import AppEngineHandler | ||
| from google.cloud.logging_v2.handlers import ContainerEngineHandler | ||
| from google.cloud.logging_v2.handlers import StructuredLogHandler | ||
| from google.cloud.logging_v2.handlers import setup_logging | ||
| from google.cloud.logging_v2.handlers.handlers import EXCLUDED_LOGGER_DEFAULTS | ||
| @@ -352,9 +350,9 @@ def get_default_handler(self, **kw): | ||
| if isinstance(monitored_resource, Resource): | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @daniel-sanche is it possible to document the behavior of ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added this suggestion to the open issue around updating the docs for v3. Let me know if you have thoughts about whether docs should be updated along with each change, or as a pass at the end of the milestone | ||
| if monitored_resource.type == _GAE_RESOURCE_TYPE: | ||
| return AppEngineHandler(self, **kw) | ||
| CloudLoggingHandler(self, resource=monitored_resource, **kw) | ||
| elif monitored_resource.type == _GKE_RESOURCE_TYPE: | ||
| return ContainerEngineHandler(**kw) | ||
| return StructuredLogHandler(**kw, project_id=self.project) | ||
| elif ( | ||
| monitored_resource.type == _GCF_RESOURCE_TYPE | ||
| and sys.version_info[0] == 3 | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should mark the classes as deprecated: update the docs to mention that they are not returned anymore and that new classes replace them. Folks who have existing code using 2.* library release should have a path forward that explains how to upgrade to 3.0.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My plan was to go through and update the docs at the end of the milestone, just in case any docs changes become out of date later (#245)
Do you think that makes sense, or should I try to update the docs along-side changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can update the docs later. The point here is more about the annotation of the classes.