-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stackdriver: Support writing to textPayload field of Cloud Logging Lo…
…gEntry. (#8850) Write payload to textPayload field of LogEntry if the text_payload_key is string format and the only field after stripping special fields. Signed-off-by: shuaichen <[email protected]>
- Loading branch information
Showing
4 changed files
with
345 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#define STRING_TEXT_PAYLOAD "[" \ | ||
"1595349600," \ | ||
"{" \ | ||
"\"message\": \"The application errored out\"," \ | ||
"\"logging.googleapis.com/severity\": \"ERROR\"" \ | ||
"}]" | ||
|
||
#define STRING_TEXT_PAYLOAD_WITH_RESIDUAL_FIELDS "[" \ | ||
"1595349600," \ | ||
"{" \ | ||
"\"message\": \"The application errored out\"," \ | ||
"\"logging.googleapis.com/severity\": \"ERROR\"," \ | ||
"\"errorCode\": \"400\"" \ | ||
"}]" | ||
|
||
#define NON_SCALAR_PAYLOAD_WITH_RESIDUAL_FIELDS "[" \ | ||
"1595349600," \ | ||
"{" \ | ||
"\"message\": " \ | ||
"{" \ | ||
"\"application_name\": \"my_application\"," \ | ||
"\"error_message\": \"The application errored out\"," \ | ||
"}," \ | ||
"\"logging.googleapis.com/severity\": \"ERROR\"," \ | ||
"\"errorCode\": \"400\"" \ | ||
"}]" |
Oops, something went wrong.