Skip to content

Commit

Permalink
fix: accept the precision loss prevention of js on time_unix_nano
Browse files Browse the repository at this point in the history
  • Loading branch information
RanolP authored Apr 3, 2024
1 parent 5002f08 commit 33b26dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/traces/otlp_http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ pub async fn traces_json(
}
events.push(Event {
name: event.get("name").unwrap().as_str().unwrap().to_string(),
_timestamp: event.get("timeUnixNano").unwrap().as_u64().unwrap(),
_timestamp: get_uint_value(event.get("timeUnixNano").unwrap()),
attributes: event_att_map.clone(),
})
}
Expand Down

0 comments on commit 33b26dc

Please sign in to comment.