From 3f311956c6f82c00f0520ef3196105204e52ee8f Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Fri, 24 Nov 2023 21:06:09 +0100 Subject: [PATCH] revert: broken tracing --- Server/PacketHandlers/IPacketHandler.cs | 5 ----- 1 file changed, 5 deletions(-) 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;