File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -41,19 +41,28 @@ pub struct NoopLogRecord;
41
41
42
42
impl LogRecord for NoopLogRecord {
43
43
// Implement the LogRecord trait methods with empty bodies.
44
+ #[ inline]
44
45
fn set_timestamp ( & mut self , _timestamp : SystemTime ) { }
46
+ #[ inline]
45
47
fn set_observed_timestamp ( & mut self , _timestamp : SystemTime ) { }
48
+ #[ inline]
46
49
fn set_span_context ( & mut self , _context : & SpanContext ) { }
50
+ #[ inline]
47
51
fn set_severity_text ( & mut self , _text : Cow < ' static , str > ) { }
52
+ #[ inline]
48
53
fn set_severity_number ( & mut self , _number : Severity ) { }
54
+ #[ inline]
49
55
fn set_body ( & mut self , _body : AnyValue ) { }
56
+ #[ inline]
50
57
fn set_attributes ( & mut self , _attributes : Vec < ( Key , AnyValue ) > ) { }
58
+ #[ inline]
51
59
fn set_attribute < K , V > ( & mut self , _key : K , _value : V )
52
60
where
53
61
K : Into < Key > ,
54
62
V : Into < AnyValue > ,
55
63
{
56
64
}
65
+ #[ inline]
57
66
fn set_context < T > ( & mut self , _context : & T )
58
67
where
59
68
T : crate :: trace:: TraceContextExt ,
You can’t perform that action at this time.
0 commit comments