Skip to content

[Logging] Move the code path of calling get_gae_labels() to emit() #4823

@liyanhui1228

Description

@liyanhui1228

Related with #3359. To make it easier to set the labels in each request without explicitly calling handler.get_gae_labels() or calling client.setup_logging() inside the request which causes a lot overhead, it's better to move the code path of getting the gae labels to the emit() function in the logging handler. And change the AppEngineHandler to extend the logging.StreamHandler directly instead of extending the CloudLoggingHandler.

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the Cloud Logging API.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions