feat: Add a sample snippet for use of the tailLogEntries API#628
feat: Add a sample snippet for use of the tailLogEntries API#628
Conversation
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
|
Warning: This pull request is touching the following templated files:
|
simonz130
left a comment
There was a problem hiding this comment.
Great job. Please rebase it and look into my question on thread.join
| int allowedDeleteAttempts = 5; | ||
| boolean deleted = false; | ||
| while (!deleted && deleteAttempts < allowedDeleteAttempts) { | ||
| Thread.sleep(5000); |
There was a problem hiding this comment.
add logs so when looking at the test run logs we can see how many attempts it took to clean and whether cleanup succeeded or not.
There was a problem hiding this comment.
I will do it later. Need review what and how it is better done, unless you are sure that a plain System.out.println() call will be good enough. I just moved the existing code into the base class. Adding this info is useful but might have few gotchas.
e1e4b21 to
b028ae2
Compare
21fd98d to
e1e4b21
Compare
e1e4b21 to
a47a7ca
Compare
| } catch (Exception t) { | ||
| } |
There was a problem hiding this comment.
nit: something weird here with indentation - worth re-aligning so it's clearer which '{' belongs to which '}'
|
|
||
| package com.example.logging; | ||
|
|
||
| // [START logging_write_log_entry] |
There was a problem hiding this comment.
This should be logging_tail_log_entries
| } | ||
| } | ||
| } | ||
| // [END logging_write_log_entry] |
Implements samples for tailLogEntries API implemented in PR #627