File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}" ) ;
You can’t perform that action at this time.
0 commit comments