Skip to content

Commit

Permalink
Fix tracing message name (#1829)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeralsing authored Oct 21, 2022
1 parent 3aa0ca3 commit ea96a2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/Proto.Actor/Messages/MessageEnvelope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.Runtime.CompilerServices;
using JetBrains.Annotations;
using Proto.Diagnostics;
using Proto.Extensions;

namespace Proto;

Expand Down Expand Up @@ -162,7 +163,7 @@ public static MessageHeader UnwrapHeader(object? message) =>

public string GetTypeName()
{
var m = Message?.GetType().Name ?? "null";
return $"MessageEnvelope({m})";
var m = Message.GetMessageTypeName();
return m;
}
}
3 changes: 1 addition & 2 deletions src/Proto.Cluster/Grain/GrainRequestMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public IRootSerialized Serialize(ActorSystem system)
public string GetTypeName()
{
var m = RequestMessage?.GetType().Name ?? "null";

return $"GrainRequest({m})";
return m;
}
}

0 comments on commit ea96a2b

Please sign in to comment.