-
Notifications
You must be signed in to change notification settings - Fork 15
Allow submitting Vec<Vec<Span>> asynchronously
#1302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
27f0ac3 to
6f00810
Compare
BenchmarksComparisonBenchmark execution time: 2025-11-17 21:59:42 Comparing candidate commit 699b3a0 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 55 metrics, 2 unstable metrics. CandidateCandidate benchmark detailsGroup 1
Group 2
Group 3
Group 4
Group 5
Group 6
Group 7
Group 8
Group 9
Group 10
Group 11
Group 12
Group 13
Group 14
Group 15
Group 16
Group 17
BaselineOmitted due to size. |
|
✅ Tests 🎉 All green!❄️ No new flaky tests detected 🔗 Commit SHA: 699b3a0 | Docs | Datadog PR Page | Was this helpful? Give us feedback! |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1302 +/- ##
=======================================
Coverage 70.97% 70.98%
=======================================
Files 390 390
Lines 62586 62593 +7
=======================================
+ Hits 44419 44430 +11
+ Misses 18167 18163 -4
🚀 New features to boost your workflow:
|
Artifact Size Benchmark Reportaarch64-alpine-linux-musl
aarch64-apple-darwin
aarch64-unknown-linux-gnu
libdatadog-x64-windows
libdatadog-x86-windows
x86_64-alpine-linux-musl
x86_64-apple-darwin
x86_64-unknown-linux-gnu
|
6f00810 to
3e4c8ac
Compare
| #[no_mangle] | ||
| pub extern "C" fn ddog_set_span_trace_id(span: &mut SpanBytes, value: u64) { | ||
| span.trace_id = value; | ||
| span.trace_id = value as u128; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the benefit of making trace_id u128 internally if we can only accept u64 as input?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
protocol v1 will be u128, so it will happen sooner or later.
datadog-sidecar/src/unix.rs
Outdated
| #[cfg(target_os = "linux")] | ||
| if let Err(e) = init_crashtracker(trampoline_data.dependency_paths) { | ||
| warn!("Failed to initialize crashtracker: {e}"); | ||
| tracing::warn!("Failed to initialize crashtracker: {e}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style nit: why not include warn in the import on line 23?
VianneyRuhlmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| (*index).try_into() | ||
| pub fn get_or_insert(&mut self, s: T) -> Result<u32, std::num::TryFromIntError> { | ||
| if let Some(index) = self.map.get_index_of(s.borrow()) { | ||
| (index).try_into() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| (index).try_into() | |
| index.try_into() |
| .block_on(async { self.send_trace_chunks_inner(trace_chunks).await }) | ||
| } | ||
|
|
||
| pub async fn send_trace_chunks_async<T: SpanText>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We try to keep all public functions documented with rustdoc
3e4c8ac to
326e055
Compare
326e055 to
699b3a0
Compare
What does this PR do?
Title says it all
Motivation
I want to be able to use https://napi.rs's ability to work with tokio directly, rather than just blocking.
Additional notes
This is currently rebased on top of #1266, and should be re-re-based once that's merged.