You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
importopentracingimportloggingimporttimefromjaeger_clientimportConfigif__name__=="__main__":
log_level=logging.DEBUGlogging.getLogger('').handlers= []
logging.basicConfig(format='%(asctime)s %(message)s', level=log_level)
config=Config(
config={ # usually read from some yaml config'sampler': {
'type': 'const',
'param': 1,
},
'local_agent': {
'reporting_host': "jaeger",
'reporting_port': 5775,
},
'logging': True,
},
service_name='my-app',
)
tracer=config.initialize_tracer()
withopentracing.tracer.start_span('TestSpan') asspan:
span.log_event('test message', payload={'life': 42})
withopentracing.tracer.start_span('ChildSpan', child_of=span) aschild_span:
span.log_event('down below')
time.sleep(2) # yield to IOLoop to flush the spans - https://github.com/uber/jaeger-client-python/i$tracer.close() # flush any buffered spans
Can you check whether the javascript client supports the option? This is not recommended due to efficency reasons, but it should be OK for testing during integration, on k8s the sidecar setup works anyway.
After some intensive looking, I found out that somehow the way Node.js sends the UDP packages are invalid for the port 5775 (this is really weird because in python it actually works like the way you described).
After some try and guess, I found the correct port for Node.js which is 6832. It is also interesting to note that if you use the port 6831, then the services gets logged, but spans do not reach to agent. Anyways, sorry it took a bit long to figure it out because of the poor documentation at the nodejs side of jaeger.
See this PR for the version that works with docker.
With this PR, I am sending trace logs successfully to jaeger-client, but the client does not seem to get it.
Tested with docker.
The text was updated successfully, but these errors were encountered: