From 7cb0bcbd083a6f40a6cca8a817b0794ece0d7a3c Mon Sep 17 00:00:00 2001 From: nenoNaninu Date: Sat, 3 Feb 2024 14:49:42 +0900 Subject: [PATCH] change log event id --- .../Internal/HubLogger.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/AspNetCore.SignalR.OpenTelemetry/Internal/HubLogger.cs b/src/AspNetCore.SignalR.OpenTelemetry/Internal/HubLogger.cs index 9e47214..a1ff016 100644 --- a/src/AspNetCore.SignalR.OpenTelemetry/Internal/HubLogger.cs +++ b/src/AspNetCore.SignalR.OpenTelemetry/Internal/HubLogger.cs @@ -12,15 +12,15 @@ internal static partial class HubLogger [LoggerMessage(8201, LogLevel.Information, "Invoking the SignalR hub method {Hub}.{HubMethod}")] public static partial void LogHubMethodInvocation(ILogger logger, string hub, string hubMethod); - [LoggerMessage(8202, LogLevel.Information, "Duration: {Duration}ms")] - public static partial void LogHubMethodInvocationDuration(ILogger logger, double duration); - - [LoggerMessage(8208, LogLevel.Information, "SignalR connection to {Hub} was disconnected")] + [LoggerMessage(8202, LogLevel.Information, "SignalR connection to {Hub} was disconnected")] public static partial void LogOnDisconnected(ILogger logger, string hub); - [LoggerMessage(8209, LogLevel.Information, "SignalR connection to {Hub} was disconnected with exception")] + [LoggerMessage(8203, LogLevel.Information, "SignalR connection to {Hub} was disconnected with exception")] public static partial void LogOnDisconnectedWithError(ILogger logger, string hub, Exception exception); + [LoggerMessage(8204, LogLevel.Information, "Duration: {Duration}ms")] + public static partial void LogHubMethodInvocationDuration(ILogger logger, double duration); + private static readonly Func BeginHubMethodInvocationScopeCallback = LoggerMessage.DefineScope("Hub:{Hub}, HubMethod:{HubMethod}, HubInvocationId:{HubInvocationId}");