Skip to content

Commit 80b7955

Browse files
Re-enable SyncState and SyncNullifier traces
1 parent c27bd14 commit 80b7955

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

crates/utils/src/tracing/grpc.rs

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,12 @@ pub fn grpc_trace_fn<T>(request: &http::Request<T>) -> tracing::Span {
2121

2222
// Create a span with a generic, static name. Fields to be recorded after needs to be
2323
// initialized as empty since otherwise the assignment will have no effect.
24-
let span = match method {
25-
"SyncState" | "SyncNullifiers" => tracing::debug_span!(
26-
"rpc",
27-
otel.name = field::Empty,
28-
rpc.service = service,
29-
rpc.method = method
30-
),
31-
_ => tracing::info_span!(
32-
"rpc",
33-
otel.name = field::Empty,
34-
rpc.service = service,
35-
rpc.method = method
36-
),
37-
};
24+
let span = tracing::info_span!(
25+
"rpc",
26+
otel.name = field::Empty,
27+
rpc.service = service,
28+
rpc.method = method
29+
);
3830

3931
// Set the span name via otel.name
4032
let otel_name = format!("{service}/{method}");

0 commit comments

Comments
 (0)