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
I am trying to integrate nginx with jaeger, but in jaeger UI am getting long duration time for a nginx request.
When i hit / on my nginx server it takes less than a second to load, but in jaeger its showing 18+ seconds.
I have made a small fix in opentracing_request_instrumentor.cpp and after that its working as expected.
what i changed:
replaced the
"auto timepoint = ngx_timeofday()
auto finish_timestamp =opentracing::convert_time_pointstd::chrono::steady_clock(to_system_timestamp(timepoint->sec, timepoint->msec)); " to
auto finish_timestamp = std::chrono::steady_clock::now();
My env details:
Jaeger: all jaeger components running in single container
docker run -d -e COLLECTOR_ZIPKIN_HTTP_PORT=9411 -p5775:5775/udp -p6831:6831/udp -p6832:6832/udp -p5778:5778 -p16686:16686 -p14268:14268 -p9411:9411 jaegertracing/all-in-one:latest
Nginx - Used the docker image which described in this project
rnburn/nginx-opentracing:latest
Hi,
I am trying to integrate nginx with jaeger, but in jaeger UI am getting long duration time for a nginx request.
When i hit / on my nginx server it takes less than a second to load, but in jaeger its showing 18+ seconds.
I have made a small fix in opentracing_request_instrumentor.cpp and after that its working as expected.
what i changed:
replaced the
"auto timepoint = ngx_timeofday()
auto finish_timestamp =opentracing::convert_time_pointstd::chrono::steady_clock(to_system_timestamp(timepoint->sec, timepoint->msec)); " to
auto finish_timestamp = std::chrono::steady_clock::now();
My env details:
Jaeger: all jaeger components running in single container
docker run -d -e COLLECTOR_ZIPKIN_HTTP_PORT=9411 -p5775:5775/udp -p6831:6831/udp -p6832:6832/udp -p5778:5778 -p16686:16686 -p14268:14268 -p9411:9411 jaegertracing/all-in-one:latest
Nginx - Used the docker image which described in this project
rnburn/nginx-opentracing:latest
My nginx conf file
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
load_module modules/ngx_http_opentracing_module.so;
load_module modules/ngx_http_jaeger_module.so;
events {
worker_connections 1024;
}
http {
}
The text was updated successfully, but these errors were encountered: