Skip to content

Commit a07acb2

Browse files
committed
inline noop's
1 parent 229fbf5 commit a07acb2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

opentelemetry/src/logs/noop.rs

+9
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,28 @@ pub struct NoopLogRecord;
4141

4242
impl LogRecord for NoopLogRecord {
4343
// Implement the LogRecord trait methods with empty bodies.
44+
#[inline]
4445
fn set_timestamp(&mut self, _timestamp: SystemTime) {}
46+
#[inline]
4547
fn set_observed_timestamp(&mut self, _timestamp: SystemTime) {}
48+
#[inline]
4649
fn set_span_context(&mut self, _context: &SpanContext) {}
50+
#[inline]
4751
fn set_severity_text(&mut self, _text: Cow<'static, str>) {}
52+
#[inline]
4853
fn set_severity_number(&mut self, _number: Severity) {}
54+
#[inline]
4955
fn set_body(&mut self, _body: AnyValue) {}
56+
#[inline]
5057
fn set_attributes(&mut self, _attributes: Vec<(Key, AnyValue)>) {}
58+
#[inline]
5159
fn set_attribute<K, V>(&mut self, _key: K, _value: V)
5260
where
5361
K: Into<Key>,
5462
V: Into<AnyValue>,
5563
{
5664
}
65+
#[inline]
5766
fn set_context<T>(&mut self, _context: &T)
5867
where
5968
T: crate::trace::TraceContextExt,

0 commit comments

Comments
 (0)