diff --git a/src/Elastic.Apm/Api/Message.cs b/src/Elastic.Apm/Api/Message.cs index 1d93221f3..dbb864a07 100644 --- a/src/Elastic.Apm/Api/Message.cs +++ b/src/Elastic.Apm/Api/Message.cs @@ -4,6 +4,7 @@ // See the LICENSE file in the project root for more information using System.Collections.Generic; +using System.Text.Json.Serialization; using Elastic.Apm.Api.Constraints; namespace Elastic.Apm.Api @@ -32,6 +33,7 @@ public class Message /// /// optional routing key of the received message as set on the queuing system, such as in RabbitMQ. /// + [JsonPropertyName("routing_key")] public string RoutingKey { get; set; } }