revert: broken tracing
This commit is contained in:
parent
526660dc35
commit
3f311956c6
1 changed files with 0 additions and 5 deletions
|
@ -1,6 +1,5 @@
|
||||||
// Copyright (c) 2023 Timothy Schenk. Subject to the GNU AGPL Version 3 License.
|
// Copyright (c) 2023 Timothy Schenk. Subject to the GNU AGPL Version 3 License.
|
||||||
|
|
||||||
using System.Diagnostics;
|
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
using NetCoreServer;
|
using NetCoreServer;
|
||||||
using Wonderking.Packets;
|
using Wonderking.Packets;
|
||||||
|
@ -15,15 +14,11 @@ public interface IPacketHandler<in T> : IPacketHandler where T : IPacket
|
||||||
|
|
||||||
async Task<bool> IPacketHandler.TryHandleAsync(IPacket packet, TcpSession session)
|
async Task<bool> IPacketHandler.TryHandleAsync(IPacket packet, TcpSession session)
|
||||||
{
|
{
|
||||||
var activitySource = new ActivitySource(nameof(Server));
|
|
||||||
using var activity = activitySource.StartActivity("PacketHandlerHandleAsync");
|
|
||||||
if (packet is not T tPacket)
|
if (packet is not T tPacket)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
activity.SetTag("packetName", packet.ToString());
|
|
||||||
activity.SetTag("handlerName", this.ToString());
|
|
||||||
await HandleAsync(tPacket, session);
|
await HandleAsync(tPacket, session);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue