File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ pub struct TracerMetadata {
3737 /// thread context records index into this table. Set to `None` to disable thread-level related
3838 /// attributes to the process-level context.
3939 ///
40- /// If set to `Some`, the first key will be automatically to be `datadog.local_root_span_id` in
41- /// the OTel process context, because the thread context handling elsewhere in libdatadog
40+ /// If set to `Some`, the first key will be automatically set to `datadog.local_root_span_id`
41+ /// in the OTel process context, because the thread context handling elsewhere in libdatadog
4242 /// relies on this key's index to be zero. Only set additional keys in
43- /// `threadlocal_attribute_keys`; the root span id is considered to be always implicitly here.
43+ /// `threadlocal_attribute_keys`; the root span id is considered to always be here implicitly .
4444 ///
4545 /// This field is specific to OTel process context. It is ignored for (de)serialization, and is
4646 /// only used when converting to an OTel process context in
Original file line number Diff line number Diff line change @@ -214,9 +214,9 @@ pub mod linux {
214214 let mut offset = 0 ;
215215 let mut fully_encoded = true ;
216216 let root_span_attr = ( ROOT_SPAN_KEY_INDEX , root_span_id) ;
217- let attrs = std:: iter:: once ( & root_span_attr) . chain ( attributes) ;
217+ let full_attrs = std:: iter:: once ( & root_span_attr) . chain ( attributes) ;
218218
219- for & ( key_index, val) in attrs {
219+ for & ( key_index, val) in full_attrs {
220220 let val_bytes = val. as_bytes ( ) ;
221221 let val_len = val_bytes. len ( ) ;
222222 let val_len = if val_len > 255 {
You can’t perform that action at this time.
0 commit comments