[ 
https://issues.apache.org/jira/browse/SOLR-16528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17631867#comment-17631867
 ] 

David Smiley commented on SOLR-16528:
-------------------------------------

It does reproduce branch_9x sadly.  Here's my bash history:

{noformat}
 3181  export JAEGER_SAMPLER_TYPE=const
 3182  export JAEGER_SAMPLER_PARAM=1
 3183  export JAEGER_ENDPOINT=http://localhost:14268/api/traces
 3184  bin/solr start -f -c -Dsolr.modules=jaegertracer-configurator
 3185  bin/solr start -f -Dsolr.modules=jaegertracer-configurator
{noformat}
prior to that, I did {{gradlew dev}} and I edited solr.xml to have the 
one-liner to use Jaeger tracing.  I'm on macOS using Java 11.  I didn't have to 
actually run any Jaeger agent/server to show this error because it won't 
actually connect (obviously).

We may want to reconsider bothering adding this dependency as we're about to 
deprecate the whole module.  I've seen a CVE for okhttp that I had to triage at 
work and it was an awkward one; but take that with a grain of salt.


> Jaegertracer module must include okhttp3 dependency
> ---------------------------------------------------
>
>                 Key: SOLR-16528
>                 URL: https://issues.apache.org/jira/browse/SOLR-16528
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 9.0
>            Reporter: Jan Høydahl
>            Assignee: Jan Høydahl
>            Priority: Major
>             Fix For: 9.2
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Trying to use the JaegerTracer module with 9.0. Setting up 
> {{JAEGER_ENDPOINT=[http://jaeger:14268/api/traces]}} but then get exception 
> {noformat}
> 2022-11-08 14:42:59.046 ERROR (main) [] o.a.s.c.SolrCore null => 
> java.lang.NoClassDefFoundError: okhttp3/Interceptor
>     at 
> io.jaegertracing.thrift.internal.senders.ThriftSenderFactory.getSender(ThriftSenderFactory.java:20)
> java.lang.NoClassDefFoundError: okhttp3/Interceptor
>     at 
> io.jaegertracing.thrift.internal.senders.ThriftSenderFactory.getSender(ThriftSenderFactory.java:20)
>  ~[?:?]
>     at 
> io.jaegertracing.internal.senders.SenderResolver.getSenderFromFactory(SenderResolver.java:110)
>  ~[?:?]
>     at 
> io.jaegertracing.internal.senders.SenderResolver.resolve(SenderResolver.java:88)
>  ~[?:?]
> {noformat}
> The plugin works with a local agent (JAEGER_AGENT_HOST=myhost), but not for 
> pushing traces directly to the jaeger collector (or in our case OpenTelmetry 
> Collector).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to