-
Notifications
You must be signed in to change notification settings - Fork 395
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
"failed_to_send services to agent", when using mysql + msgpack encoder #428
Comments
This is the important part:
Two services are being reported for the same integration. One of them has a |
Getting the same issue. How do I change the encoder to use JSON? |
@rohitpaulk sure thing, we'll work on it as soon as possible fixing both issues. the @ToastyBiggums you can manually switch back to JSON using the following snippet: from ddtrace import tracer
from ddtrace.encoding import JSONEncoder
tracer.writer.api._encoder = JSONEncoder() As you see, you're using an internal attribute ( We'll notify this thread again once one of our engineers is working actively on this issue. |
Just to give more context, the encoder API is not public because |
Thanks, @palazzem. Just wanted to let you know that this isn't really affecting us apart from spamming our error collection system - the core functionality works fine :) |
Cool @rohitpaulk ! The reason why we're giving low priority to this issue is because service reporting is going to be removed from our clients. Since Agent 5.21.1, they're automatically detected. Because it's not happening in the next couple of weeks, probably we're just going to fix this issue :) Thanks for your feedback! |
@palazzem I see that 5.24.0 of the agent has been released, is this issue fixed in that release? |
Hey @rohitpaulk! Actually we still need to make a fix on the |
Hey @rohitpaulk! We've updated our client code so that it should not be an issue anymore. Can you verify if #468 solves your problem? It's enough a quick check, then I'll merge it for the next 0.12.1 release. Thank you very much! |
This fixes the problem in my test script 👍. On our production installation though, I see the same error on Test script: import logging
import time
import ddtrace
import requests
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG)
ddtrace.tracer.configure(hostname='localhost', port=8126)
ddtrace.tracer.debug_logging = True
ddtrace.patch(requests=True)
requests.get('http://google.com')
time.sleep(30) # Wait for the traces to be sent Logs:
|
@rohitpaulk perfect, we're going to check other integrations in the meantime. I'll ping you again so we can ship a bugfix release that addresses the issue you are experiencing. |
Hey @rohitpaulk ! can you check that PR too? #471 It should address the |
This is the last issue :) Thanks! Will wait for the release. |
Great @rohitpaulk ! Closing this issue then since it will be addressed in the next release (this week at this point). Thank you very much! |
master
and latest on pypi (v0.10.1
)Script:
Logs:
Logs from trace agent:
I think this is related to the fact that the service payload is expected to have both
app
andapp_type
defined as non-null values?The text was updated successfully, but these errors were encountered: