datadog-agent icon indicating copy to clipboard operation
datadog-agent copied to clipboard

Cannot decode v0.4 traces payload: msgp: too few bytes left to read object

Open rkdrnf opened this issue 3 years ago • 1 comments

Describe what happened:

Cannot decode v0.4 traces payload: msgp: too few bytes left to read object

Sometimes above error occurs on datadog agent container. Usually it just works fine without any error.

ERROR:ddtrace.internal.writer:failed to send traces to Datadog Agent at http://datadog-agent:8126: HTTP error status 400, reason Bad Request

ddtrace client error occurs as a result.

Describe what you expected: There should be no error on both datadog agent container and ddtrace client.

Additional environment details (Operating System, Cloud provider, etc): Running datadog agent docker image gcr.io/datadoghq/agent:7 AWS ElasticBeanstalk Linux AMI 2 Docker Platform

Client: Python 3.6 Flask Running ddtrace with following uwsgi options

enable-threads=true
lazy-apps=true
import=ddtrace.bootstrap.sitecustomize

rkdrnf avatar Oct 18 '21 03:10 rkdrnf

Did someone find out where this comes from? We also see a lot of the Cannot decode logs but I have no idea which component sends the invalid traces.

florianmutter avatar Oct 11 '22 05:10 florianmutter

I get that error on tracerAgent.

s7an-it avatar Jan 22 '23 02:01 s7an-it

Observing similar issue - is there any impact of this on dropped traces/spans??

rahul-paigavan avatar Jul 28 '23 13:07 rahul-paigavan

Anyone figured this one out?

peterdeme avatar Jul 12 '24 13:07 peterdeme