-
Notifications
You must be signed in to change notification settings - Fork 16
Jaeger service not reachable from frontend #111
Comments
Have you seen this one: (python) jaegertracing/jaeger-client-python#47 version: '3.7'
services:
jaeger:
image: jaegertracing/all-in-one:1.8
ports:
- 5775:5775/udp
- 6831:6831/udp
- 6832:6832/udp
- 5778:5778
- 16686:16686
- 14268:14268
- 9411:9411
ubuntu:
image: oisp/debugger main.py (almost the same as on the link) import opentracing
import logging
import time
from jaeger_client import Config
if __name__ == "__main__":
log_level = logging.DEBUG
logging.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()
with opentracing.tracer.start_span('TestSpan') as span:
span.log_event('test message', payload={'life': 42})
with opentracing.tracer.start_span('ChildSpan', child_of=span) as child_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). |
Closing |
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: