-
Notifications
You must be signed in to change notification settings - Fork 346
Description
Expected behaviour
- A message is sent from a nodejs application to an SNS topic with _datadog context propagation header set.
- A messages is placed on an SQS queue based on a subscription to the SNS topic
- A JMS consumer consumes and processes the message
Actual behaviour
1 & 2 function properly
Step 3 fails with an error "JMSException: Binary is not a supported JMS property type" thrown by this code in the aws library
https://github.com/awslabs/amazon-sqs-java-messaging-lib/blob/4cb91355cb92d9361a2179233c9db89383b1299e/src/main/java/com/amazon/sqs/javamessaging/message/SQSMessage.java#L1057
The issue appears to be that when a message is sent to an SNS topic the DataType is set to "Binary"
Which causes the error in the previous code link.
In the SQS version of the code it uses a DataType of "String":
DataType: 'String', |
It looks like it's using Binary because of some sort of Message Attribute filtering issue
DataDog/serverless-plugin-datadog#232 (comment)
Steps to reproduce
Environment
Linux AWS ECS Fargate
- Operation system:
Linux - Node.js version:
18 - Tracer version:
4.12 - Agent version:
https://github.com/DataDog/datadog-agent - Relevant library versions: