Skip to content

Commit

Permalink
log parent
Browse files Browse the repository at this point in the history
  • Loading branch information
eaypek-tfh committed Sep 28, 2024
1 parent 73c2737 commit 3af87fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions iris-mpc-common/src/helpers/tracing.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
use opentelemetry::trace::{SpanContext, SpanId, TraceFlags, TraceId, TraceState};

pub fn trace_from_message_attributes(trace_id: &str, span_id: &str) -> eyre::Result<SpanContext> {
tracing::info!(
"Creating span context from message attributes. trace id: {}, span id: {}",
trace_id,
span_id
);
// Create and set the span parent context
let parent_ctx = SpanContext::new(
TraceId::from(trace_id.parse::<u128>()?),
Expand Down
2 changes: 1 addition & 1 deletion iris-mpc-gpu/src/server/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ impl ServerActor {
.preprocess_db(&mut self.right_mask_db_slices, &self.current_db_sizes);
}

#[tracing::instrument(skip(self, return_channel))]
#[tracing::instrument(skip(self, batch, return_channel))]
fn process_batch_query(
&mut self,
batch: BatchQuery,
Expand Down

0 comments on commit 3af87fb

Please sign in to comment.