-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: "type" is a column that exists in some of our datasets, but right now the use of "type" restricts a more freeform table (if a logger only logs one event, type doesn't really make sense). This diff adds a "typeless" log method, where the StructuredLogger can log Dynamic events without a `type` I was debating if I should make this a `std::optional` or just use a `nullptr` for typeless events. It looks to be minimally different after compilation, so I opted for the `std::optional` for readability/safety sake `std::optional`: https://godbolt.org/z/Ms6EqMMKh `nullptr`: https://godbolt.org/z/6YTd9ax3M Reviewed By: jdelliot Differential Revision: D63797398 fbshipit-source-id: a92e4e846e6305b89fcf696c24f6b83d7f1966be
- Loading branch information
1 parent
5842626
commit 96640dd
Showing
4 changed files
with
71 additions
and
3 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
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