Skip to content

Type of a message is lost for ActivityKind: Server and Internal #19

@prybski

Description

@prybski

During incorporation of this project as a NuGet package we have encountered an issue, which results in missing type of a message for ActivityKind: Server and Internal (for Client it works fine and is visible as it should be). I saw in the source code that you are extracting type of a message with use of .GetMessageType() method, but it seems to not always return it:

/// <summary>
/// Gets the message type from the message
/// </summary>
public static string GetMessageType(this TransportMessage message)
{
    if (message == null) throw new ArgumentNullException(nameof(message));
    return message.Headers.GetValueOrNull(Headers.Type)
           ?? "<unknown>";
}

Maybe there is a better way to extract type of a message(?), because right now we have ended up with our custom implementation, which uses Rebus.Events NuGet package and with is the type of a message is always present.

I am including screenshots from our Datadog instance to illustrate what the problem is in a better way:
image
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions