File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,14 @@ pub trait LogRecord {
61
61
}
62
62
63
63
/// Value types for representing arbitrary values in a log record.
64
+ /// Note: The `tracing` and `log` crates only support basic types that can be
65
+ /// converted to these core variants: `i64`, `f64`, `StringValue`, and `bool`.
66
+ /// Any complex and custom types are supported through their Debug implementation,
67
+ /// and converted to String. More complex types (`Bytes`, `ListAny`, and `Map`) are
68
+ /// included here to meet specification requirements and are available to support
69
+ /// custom appenders that may be implemented for other logging crates.
70
+ /// These types allow for handling dynamic data structures, so keep in mind the
71
+ /// potential performance overhead of using boxed vectors and maps in appenders.
64
72
#[ derive( Debug , Clone , PartialEq ) ]
65
73
#[ non_exhaustive]
66
74
pub enum AnyValue {
You can’t perform that action at this time.
0 commit comments