FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Support entry labels by tseaver · Pull Request #1668 · googleapis/google-cloud-python · GitHub

Support entry labels - #1668

Merged
tseaver merged 7 commits into
googleapis:logging-apifrom
tseaver:logging-support_entry_labels
Mar 28, 2016
Merged

Support entry labels#1668
tseaver merged 7 commits into
googleapis:logging-apifrom
tseaver:logging-support_entry_labels

Conversation

tseaver commented Mar 28, 2016

Copy link
Copy Markdown
Contributor

Fetched entries expose labels set on the back-end.

When logging, labels can be passed in explicitly to the log_text, log_struct, or log_proto methods. If not passed, any default values configured on the logger instance will be used.

See: #1566.

tseaver added the api: logging Issues related to the Cloud Logging API. label Mar 28, 2016
googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 28, 2016
tseaver added 3 commits March 28, 2016 13:55
Labels can be passed in explicitly to the 'log_text', 'log_struct', or
'log_proto' methods.  If not passed, any default values configured on
the logger instance will be used.

See: #1566.
Comment thread gcloud/logging/logger.py Outdated

labels = self._get_labels(labels)
if labels is not None:
data['entries'][0]['labels'] = labels

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Comment thread gcloud/logging/logger.py
return Batch(self, client)

def log_text(self, text, client=None):
def _make_entry_resource(self, text=None, info=None, message=None,

This comment was marked as spam.

This comment was marked as spam.

dhermes commented Mar 28, 2016

Copy link
Copy Markdown
Contributor

LGTM. 7 commits seems like a lot?

tseaver commented Mar 28, 2016

Copy link
Copy Markdown
Contributor Author

7 commits seems like a lot?

Two of the commits are bugfixes for already-merged-to-logging-api code. :(

dhermes commented Mar 28, 2016

Copy link
Copy Markdown
Contributor

You can do with the commits as you see fit. You are go to merge on my end.

tseaver merged commit f1b9261 into googleapis:logging-api Mar 28, 2016
tseaver deleted the logging-support_entry_labels branch March 28, 2016 19:41

tseaver commented Mar 28, 2016

Copy link
Copy Markdown
Contributor Author

I merged as-is after aborting a rebase where I tried to clean it up.

parthea pushed a commit that referenced this pull request Nov 24, 2025
* fix: mock return_value should not populate oneof message fields
parthea pushed a commit that referenced this pull request Mar 9, 2026
…nt (#1668)

skip failing samples due to public access prevention enforcement. 

More Details on b/469643064
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: logging Issues related to the Cloud Logging API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL