mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 10:59:53 +00:00
Don't retain message payloads in span, just log the payload instead
This commit is contained in:
parent
3b8388dcdd
commit
dcdc6311df
1 changed files with 7 additions and 2 deletions
|
@ -207,9 +207,14 @@ impl Server {
|
|||
let envelope = envelope.into_any().downcast::<TypedEnvelope<M>>().unwrap();
|
||||
let span = info_span!(
|
||||
"handle message",
|
||||
payload_type = envelope.payload_type_name(),
|
||||
payload = format!("{:?}", envelope.payload).as_str(),
|
||||
payload_type = envelope.payload_type_name()
|
||||
);
|
||||
span.in_scope(|| {
|
||||
tracing::info!(
|
||||
payload = format!("{:?}", envelope.payload).as_str(),
|
||||
"message payload"
|
||||
);
|
||||
});
|
||||
let future = (handler)(server, *envelope);
|
||||
async move {
|
||||
if let Err(error) = future.await {
|
||||
|
|
Loading…
Reference in a new issue