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

ddtrace/tracer: improve agent connectivity check #719

Merged
merged 2 commits into from
Sep 7, 2020

Conversation

knusbaum
Copy link
Contributor

@knusbaum knusbaum commented Sep 2, 2020

Previously, the tracer would attempt to send an empty http POST to the
transport's endpoint at startup. This PR adds an empty msgpack array to the
request body and the X-Datadog-Trace-Count header to avoid causing decoding
error messages in the agent

Fixes #705

@knusbaum knusbaum added this to the 1.27.0 milestone Sep 2, 2020
@knusbaum knusbaum requested a review from gbbr September 2, 2020 22:14
ddtrace/tracer/log.go Outdated Show resolved Hide resolved
@knusbaum knusbaum changed the title ddtrace/tracer: change the way the tracer determines agent connectivity ddtrace/tracer: improve agent connectivity check Sep 4, 2020
@knusbaum knusbaum requested a review from gbbr September 4, 2020 14:51
gbbr
gbbr previously approved these changes Sep 4, 2020
Copy link
Contributor

@gbbr gbbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

Previously, the tracer would attempt to send an empty http POST to the
transport's endpoint at startup. This PR adds an empty msgpack array to the
request body and the X-Datadog-Trace-Count header to avoid causing decoding
error messages in the agent

Fixes #705
@knusbaum
Copy link
Contributor Author

knusbaum commented Sep 4, 2020

Sorry, had to upmerge @gbbr

@knusbaum knusbaum requested a review from gbbr September 4, 2020 15:56
@gbbr gbbr merged commit 9135761 into v1 Sep 7, 2020
@gbbr gbbr deleted the knusbaum/fix-agent-connect branch September 7, 2020 07:58
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

Successfully merging this pull request may close these issues.

Agent connectivity check causes errors in agent logs
2 participants