Skip to content

Commit e6e8f80

Browse files
committed
chore: small fixes and typos
1 parent b37b672 commit e6e8f80

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

libdd-library-config/src/tracer_metadata.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

libdd-profiling/src/otel_thread_ctx.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)