diff --git a/Server/PacketHandlers/IPacketHandler.cs b/Server/PacketHandlers/IPacketHandler.cs index 71942ca..43c9910 100644 --- a/Server/PacketHandlers/IPacketHandler.cs +++ b/Server/PacketHandlers/IPacketHandler.cs @@ -1,6 +1,5 @@ // Copyright (c) 2023 Timothy Schenk. Subject to the GNU AGPL Version 3 License. -using System.Diagnostics; using JetBrains.Annotations; using NetCoreServer; using Wonderking.Packets; @@ -15,15 +14,11 @@ public interface IPacketHandler : IPacketHandler where T : IPacket async Task IPacketHandler.TryHandleAsync(IPacket packet, TcpSession session) { - var activitySource = new ActivitySource(nameof(Server)); - using var activity = activitySource.StartActivity("PacketHandlerHandleAsync"); if (packet is not T tPacket) { return false; } - activity.SetTag("packetName", packet.ToString()); - activity.SetTag("handlerName", this.ToString()); await HandleAsync(tPacket, session); return true;