Skip to content

Commit

Permalink
Merge pull request #16 from nenoNaninu/change_eventid
Browse files Browse the repository at this point in the history
Change log event id
  • Loading branch information
nenoNaninu authored Feb 3, 2024
2 parents a5a9ef9 + 7cb0bcb commit ac5918d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/AspNetCore.SignalR.OpenTelemetry/Internal/HubLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ILogger, string, string, Guid, IDisposable?> BeginHubMethodInvocationScopeCallback
= LoggerMessage.DefineScope<string, string, Guid>("Hub:{Hub}, HubMethod:{HubMethod}, HubInvocationId:{HubInvocationId}");

Expand Down

0 comments on commit ac5918d

Please sign in to comment.