aboutsummaryrefslogtreecommitdiff
path: root/src/server.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-02-18 20:23:10 +0100
committerAlex Auvolat <alex@adnab.me>2022-02-18 20:23:10 +0100
commit109d6c143d01b2d59027d45738692fa8ef6253ee (patch)
treee3b34aa1e68e9b03d0ec79e8e2d8008b6e3559e8 /src/server.rs
parentfb6b4dc9a95f4268775e674323a2b84c7b4ae7f0 (diff)
downloadnetapp-109d6c143d01b2d59027d45738692fa8ef6253ee.tar.gz
netapp-109d6c143d01b2d59027d45738692fa8ef6253ee.zip
Add length of query to span
Diffstat (limited to 'src/server.rs')
-rw-r--r--src/server.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server.rs b/src/server.rs
index 8b60e17..7bf17df 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -161,6 +161,7 @@ impl ServerConn {
.start(&tracer)
};
span.set_attribute(KeyValue::new("path", path.to_string()));
+ span.set_attribute(KeyValue::new("len_query", data.len() as i64));
handler.handle(data, self.peer_id)
.with_context(Context::current_with_span(span))