Skip to content

Commit d6f3a45

Browse files
committed
inject dd trace
1 parent 37b0ced commit d6f3a45

File tree

7 files changed

+256
-226
lines changed

7 files changed

+256
-226
lines changed

bottlecap/src/bin/bottlecap/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ async fn extension_loop_active(
348348
);
349349

350350
// let _ = start_lwa_proxy(Arc::clone(&invocation_processor), Arc::clone(&trace_processor));
351-
let _ = start_lwa_proxy(Arc::clone(&config), Arc::clone(&invocation_processor));
351+
let _ = start_lwa_proxy(Arc::clone(config), Arc::clone(&invocation_processor));
352352

353353
let lifecycle_listener = LifecycleListener {
354354
invocation_processor: Arc::clone(&invocation_processor),

bottlecap/src/lifecycle/invocation/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ fn create_empty_span(name: String, resource: String, service: String) -> Span {
4040
}
4141
}
4242

43-
fn generate_span_id() -> u64 {
43+
#[must_use]
44+
pub fn generate_span_id() -> u64 {
4445
if std::env::var(INIT_TYPE).map_or(false, |it| it == SNAP_START_VALUE) {
4546
return OsRng.next_u64();
4647
}

0 commit comments

Comments
 (0)