Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Lok <[email protected]>
  • Loading branch information
andylokandy committed Jul 23, 2023
1 parent 521e2ee commit 71826b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions minitrace-jaeger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ impl JaegerReporter {
.iter()
.map(|event| Log {
timestamp: (event.timestamp_unix_ns / 1_000) as i64,
fields: event
.properties
fields: [("name".into(), event.name.into())]
.iter()
.chain(&event.properties)
.map(|(k, v)| Tag::String {
key: k.to_string(),
value: v.to_string(),
Expand Down
3 changes: 2 additions & 1 deletion minitrace/src/collector/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ pub struct Config {
}

impl Config {
/// A soft limit for the span collection for a trace, usually used to avoid out-of-memory.
/// A soft limit for the total number of spans and events for a trace, usually used
/// to avoid out-of-memory.
///
/// # Note
///
Expand Down

0 comments on commit 71826b2

Please sign in to comment.