Skip to content

Commit 4654ada

Browse files
authored
chore: change event field name from message to json_msg (#7)
change event field name from message to json_msg
1 parent c5b4055 commit 4654ada

File tree

1 file changed

+4
-4
lines changed
  • crates/rproxy/src/server/proxy/ws

1 file changed

+4
-4
lines changed

crates/rproxy/src/server/proxy/ws/proxy.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ where
960960
remote_addr = info.remote_addr(),
961961
ts_message_received = start.format(&Iso8601::DEFAULT).unwrap_or_default(),
962962
latency_proxying = (*end - *start).as_seconds_f64(),
963-
message = tracing::field::valuable(&json_msg),
963+
json_msg = tracing::field::valuable(&json_msg),
964964
"Proxied binary message to client",
965965
);
966966
}
@@ -982,7 +982,7 @@ where
982982
remote_addr = info.remote_addr(),
983983
ts_message_received = start.format(&Iso8601::DEFAULT).unwrap_or_default(),
984984
latency_proxying = (*end - *start).as_seconds_f64(),
985-
message = tracing::field::valuable(&json_msg),
985+
json_msg = tracing::field::valuable(&json_msg),
986986
"Proxied text message to client",
987987
);
988988
}
@@ -1004,7 +1004,7 @@ where
10041004
remote_addr = info.remote_addr(),
10051005
ts_message_received = start.format(&Iso8601::DEFAULT).unwrap_or_default(),
10061006
latency_proxying = (*end - *start).as_seconds_f64(),
1007-
message = tracing::field::valuable(&json_msg),
1007+
json_msg = tracing::field::valuable(&json_msg),
10081008
"Proxied binary message to backend",
10091009
);
10101010
}
@@ -1026,7 +1026,7 @@ where
10261026
remote_addr = info.remote_addr(),
10271027
ts_message_received = start.format(&Iso8601::DEFAULT).unwrap_or_default(),
10281028
latency_proxying = (*end - *start).as_seconds_f64(),
1029-
message = tracing::field::valuable(&json_msg),
1029+
json_msg = tracing::field::valuable(&json_msg),
10301030
"Proxied text message to backend",
10311031
);
10321032
}

0 commit comments

Comments
 (0)