Closed tonycody closed 2 years ago
Currently, the source of the request in Python is retrieved, but parent_id is empty, and traceId is inconsistent with source
"attributes": {
"http.method": "POST",
"http.server_name": "0.0.0.0",
"http.scheme": "http",
"net.host.port": 8080,
"http.host": "ipaas-a34d5480-2468-429b-8e6a-03663169489f.dev3.svc.cluster.local",
"http.target": "/execute",
"net.peer.ip": "10.100.57.170",
"http.user_agent": "Apache-HttpClient/4.5.13 (Java/1.8.0_212)",
"net.peer.port": 47458,
"http.flavor": "1.1",
"http.route": "/execute",
"http.status_code": 200
}
This sounds like a propagation issue. What propagator are you using in java and what server framework are you using in Python? Is it flask?
I also met! The java used is opentelemetry javaagent - version: 1.12.1, springboot2.4.9. python: opentelemetry-api==1.11.1 opentelemetry-sdk==1.11.1 opentelemetry-instrumentation==0.30b1 opentelemetry-instrumentation-tornado==0.30b1 opentelemetry-instrumentation-requests==0.30b1 tornado==6.1 requests==2.25.1
I also met! The java used is opentelemetry javaagent - version: 1.12.1, springboot2.4.9. python: opentelemetry-api==1.11.1 opentelemetry-sdk==1.11.1 opentelemetry-instrumentation==0.30b1 opentelemetry-instrumentation-tornado==0.30b1 opentelemetry-instrumentation-requests==0.30b1 tornado==6.1 requests==2.25.1
Checking the Package Version and Flask is used or not.If you use Flask, try not using it for the time being
I use Tornado v6.1, not use Flask
My problem is solved.
add
TornadoInstrumentor().instrument()
Currently, the source of the request in Python is retrieved, but parent_id is empty, and traceId is inconsistent with source
"attributes": { "http.method": "POST", "http.server_name": "0.0.0.0", "http.scheme": "http", "net.host.port": 8080, "http.host": "ipaas-a34d5480-2468-429b-8e6a-03663169489f.dev3.svc.cluster.local", "http.target": "/execute", "net.peer.ip": "10.100.57.170", "http.user_agent": "Apache-HttpClient/4.5.13 (Java/1.8.0_212)", "net.peer.port": 47458, "http.flavor": "1.1", "http.route": "/execute", "http.status_code": 200 }
@tonycody code add:
TornadoInstrumentor().instrument()
@tonycody can you answer what the configured propagators are for both python and java?
@tonycody is this still an issue? Can you share more details requested? Otherwise please close the issue.
python instrumentation is strongly related to different python package versions. When tracing cannot be obtained, you can try to change the package of a lower version.
java call python
python pip list
python automic instrument
java debug
java trace
python debug
The trace ID is different