From 19b1e1475d0f280130f4920c26b32c948db3789f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=9F=B3=E5=A4=B4?= Date: Sun, 19 Nov 2023 22:47:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E4=BA=8E=E8=BF=87=E9=95=BF=E5=9F=8B?= =?UTF-8?q?=E7=82=B9=EF=BC=8C=E8=AE=B0=E5=BD=95=E5=86=85=E5=AE=B9=E9=95=BF?= =?UTF-8?q?=E5=BA=A6=E5=92=8C=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NewLife.CubeNC/WebMiddleware/TracerMiddleware.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/NewLife.CubeNC/WebMiddleware/TracerMiddleware.cs b/NewLife.CubeNC/WebMiddleware/TracerMiddleware.cs index c2403faf..247b8506 100644 --- a/NewLife.CubeNC/WebMiddleware/TracerMiddleware.cs +++ b/NewLife.CubeNC/WebMiddleware/TracerMiddleware.cs @@ -47,6 +47,11 @@ public async Task Invoke(HttpContext ctx) span.Tag = Environment.NewLine + buf.ToStr(null, 0, count); req.Body.Position = 0; } + else + { + span.AppendTag($"ContentLength: {req.ContentLength}"); + span.AppendTag($"ContentType: {req.ContentType}"); + } if (span.Tag.Length < 500) {