From fb5097ac715e83a01bfe65c32c2e316b4c9c5f4a Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Sat, 25 Nov 2023 15:15:34 +0100 Subject: [PATCH] chore: avoid boxing allocations --- Server/PacketHandlers/IPacketHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/PacketHandlers/IPacketHandler.cs b/Server/PacketHandlers/IPacketHandler.cs index 72f19bf..60b7b8c 100644 --- a/Server/PacketHandlers/IPacketHandler.cs +++ b/Server/PacketHandlers/IPacketHandler.cs @@ -23,7 +23,7 @@ public interface IPacketHandler : IPacketHandler where T : IPacket using (var activity = new ActivitySource(nameof(Server)).StartActivity("HandleAsync")) { activity?.SetTag("Handler", this.ToString()); - activity?.SetTag("PacketId", tPacket.ToString()); + activity?.SetTag("PacketId", packet.ToString()); await HandleAsync(tPacket, session); }