Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while sending X of X+2 traces to the DD agent #1352

Closed
joaquin386 opened this issue Apr 5, 2020 · 4 comments
Closed

Error while sending X of X+2 traces to the DD agent #1352

joaquin386 opened this issue Apr 5, 2020 · 4 comments

Comments

@joaquin386
Copy link

joaquin386 commented Apr 5, 2020

We are constantly getting this error:
[dd.tracing.agent - 2020-04-03 12:20:57:995 +0000] [dd-trace-writer] WARN datadog.trace.agent.common.writer.DDApi - Error while sending 2 of 4 traces to the DD agent. java.io.IOException: unexpected end of stream on Connection{XXXXX:8126, proxy=DIRECT hostAddress=/XXXXXXX:8126 cipherSuite=none protocol=http/1.1} (going silent for 5 minutes)

How can that error/warn be avoided or removed from the logs?

Starting the application via:
java -javaagent:/apps/datadog/dd-java-agent.jar -jar service.jar

@randomanderson randomanderson added the tag: needs investigation Issues needing investigations label Apr 27, 2020
@ismailseyfi
Copy link

I had this happen to me as well. if you're agent is running in a docker container, and your services are running in other containers or possibly your local machine, you want to make sure DD_APM_NON_LOCAL_TRAFFIC is set to true. At least that did it for my set up.

@randomanderson randomanderson removed the tag: needs investigation Issues needing investigations label Oct 23, 2020
@randomanderson
Copy link
Contributor

The "unexpected end of stream" issues should be mostly fixed from the tracer side. IOException occur when:

  • the datadog agent is not reachable
  • the datadog agent can't keep up with tracer traffic

Please upgrade to the latest agent and the latest tracer as there has been substantial work done to improve connectivity and reduce dropped traces.


Not recommended, but you can completely suppress the log message if desired. Internally, dd-java-agent uses the slf4j simplelogger but we relocate the package to datadog.slf4j.simplelogger. You can use any of the config at the link with the relocated package. -Ddatadog.slf4j.simplelogger.log.datadog.trace.agent.common.writer.DDApi=off to turn that particular log message off.

Please continue to comment or reopen if you have more questions

@qgicup
Copy link

qgicup commented Apr 21, 2021

@randomanderson we're using datadog/agent:7-jmx and still have those warnings showing up all the time. Which release fixes that? Also, how to check the tracer, since that one is normally part of Datadog platform ? Thanks a lot

@afonsomatos
Copy link

We're getting this all the time as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants