-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: impl field::Value for Option<T> (#1585)
## Motivation Building a span with some field might be `None` is bother now. Before: ```rust let span = info!("example", data = Empty ); if let Some(data) = foo() { span.record("data", &data); } ``` After: ```rust let span = info!("example", data = foo() ); ``` Co-authored-by: DCjanus <DCjanus@dcjanus.com> Co-authored-by: Eliza Weisman <eliza@buoyant.io>
- Loading branch information
1 parent
e455367
commit f250f6f
Showing
2 changed files
with
119 additions
and
1 deletion.
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