forked from uber/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create RequestBody struct, implement it using requests, add requestbo…
…dy into Attribute for auditing (uber#5124) * Revert "CDNC-2088 (uber#5094) Add attempt-count to task processing logs" This reverts commit fbe72b3. * experiment on adding audit info (has errorsgit status) * move AuditInfo into Attr * implement requestBody Struct, implement it using requests, add it into Attribute to use this field for auditing manual accesses * change struct name to be ManualRequestBody to avoid conflict * change any to interface to solve a compiling error * rerun make go-generate && make fmt && make lint && make copyright for auto generated code * change the PII-filtered request to still be a requset instead of a map * add a utility function to check if access is manual, add request body into Attribute * update with make go-generate && make fmt && make lint && make copyright * update comments and naming * change Sprintf to marshal * add error handling for json.marshal, pass it to the caller of SerializeForLogging function * add a new log tag for actor email address * update interface function error handling * pass in a pointer for serialization instead of a struct * delete the isManual checks when creating Attributes
- Loading branch information
Showing
8 changed files
with
601 additions
and
131 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.