Hi,

I'm trying to add distributed tracing to Solr following this document:
https://lucene.apache.org/solr/guide/8_6/solr-tracing.html

I downloaded the latest version, 8.6.1, and edited the
./server/solr/solr.xml file with the tracerConfig as listed in the
document. I have a Jaeger backend running on my machine locally, and thus,
the tracer config should be able to connect to local Jaeger backend.

I run the Solr server with ./bin/solr start -d ./server -f -v

But for some reason, I don't see the traces being published to Jaeger.
Instead, the Solr server does not find the right Jaeger configuration and
configures itself to Noop tracer.

2020-08-27 06:39:53.385 DEBUG (qtp762476028-24) [   ] o.e.j.w.WebAppContext
isSystemResource==false org.apache.solr.util.tracing.GlobalTracer jar:file:
~/solr/solr-8.6.1/server/solr-webapp/webapp/WEB-INF/lib/solr-core-8.6.1.jar!/org/apache/solr/util/tracing/GlobalTracer.class
2020-08-27 06:39:53.385 DEBUG (qtp762476028-24) [   ]
o.e.j.w.WebAppClassLoader WAP webapp loaded class
org.apache.solr.util.tracing.GlobalTracer
2020-08-27 06:39:53.385 DEBUG (qtp762476028-24) [   ] o.e.j.w.WebAppContext
isSystemResource==false io.opentracing.Tracer
jar:file:~/solr/solr-8.6.1/server/solr-webapp/webapp/WEB-INF/lib/opentracing-api-0.33.0.jar!/io/opentracing/Tracer.class
2020-08-27 06:39:53.386 DEBUG (qtp762476028-24) [   ]
o.e.j.w.WebAppClassLoader WAP webapp loaded interface io.opentracing.Tracer
2020-08-27 06:39:53.386 DEBUG (qtp762476028-24) [   ] o.e.j.w.WebAppContext
isSystemResource==false io.opentracing.noop.NoopTracerFactory
jar:file:~/solr/solr-8.6.1/server/solr-webapp/webapp/WEB-INF/lib/opentracing-noop-0.33.0.jar!/io/opentracing/noop/NoopTracerFactory.class
2020-08-27 06:39:53.386 DEBUG (qtp762476028-24) [   ]
o.e.j.w.WebAppClassLoader WAP webapp loaded class
io.opentracing.noop.NoopTracerFactory

I'm not sure what am I doing wrong such that Solr doesn't recognize my
Jaeger configuration. I am new to Solr, so I could be making a beginner
mistake or a straightforward error.

I did not find any other articles or similar issues reported to use for
reference. I'm happy to list/publish the solution to the problem so that it
helps other people if the solution calls for an improvement in docs.

Any help is greatly appreciated.

Thanks. a lot,
Neeraj

Reply via email to