Uh oh!
There was an error while loading. Please reload this page.
Support entry labels - #1668
Conversation
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.
| 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
It was needed earlier for batch support, but was masked by the attribute on the mock '_Logger' used by the batch tests.
| 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dhermes
commented
Mar 28, 2016
LGTM. 7 commits seems like a lot? |
tseaver
commented
Mar 28, 2016
Two of the commits are bugfixes for already-merged-to- |
dhermes
commented
Mar 28, 2016
You can do with the commits as you see fit. You are go to merge on my end. |
tseaver
commented
Mar 28, 2016
I merged as-is after aborting a rebase where I tried to clean it up. |
* fix: mock return_value should not populate oneof message fields
…nt (#1668) skip failing samples due to public access prevention enforcement. More Details on b/469643064
Fetched entries expose labels set on the back-end.
When logging, labels can be passed in explicitly to the
log_text,log_struct, orlog_protomethods. If not passed, any default values configured on the logger instance will be used.See: #1566.