dependabot[bot] opened a new pull request, #4315:
URL: https://github.com/apache/servicecomb-java-chassis/pull/4315

   Bumps `zipkin-reporter.version` from 2.17.1 to 3.4.0.
   Updates `io.zipkin.reporter2:zipkin-reporter` from 2.17.1 to 3.4.0
   
   Updates `io.zipkin.reporter2:zipkin-sender-okhttp3` from 2.17.1 to 3.4.0
   <details>
   <summary>Release notes</summary>
   <p><em>Sourced from <a 
href="https://github.com/openzipkin/zipkin-reporter-java/releases";>io.zipkin.reporter2:zipkin-sender-okhttp3's
 releases</a>.</em></p>
   <blockquote>
   <p>Zipkin Reporter 3.4 deprecates <code>AsyncReporter/SpanHandler</code> 
<code>queuedMaxBytes</code> and disables it by default.</p>
   <p>When introduced, <code>AsyncReporter</code> had three ways to trigger a 
queue flush:</p>
   <ul>
   <li><code>queuedMaxSpans</code> - when the number of spans in the queue 
exceeds a threshold</li>
   <li><code>queuedMaxBytes</code> - when the size of the spans in the queue 
exceeds a threshold</li>
   <li><code>messageTimeout</code> - when a span has been in the queue longer 
than a threshold</li>
   </ul>
   <p><code>queuedMaxBytes</code> was deprecated because requires time in the 
critical path, to calculate the size of a span to make sure it doesn't breach 
the threshold. This is problematic in tools that check for pinning, like 
Virtual Threads.</p>
   <p>Thanks a lot to <a href="https://github.com/reta";><code>@​reta</code></a> 
for sorting this out!</p>
   <p><strong>Full Changelog</strong>: <a 
href="https://github.com/openzipkin/zipkin-reporter-java/compare/3.3.0..3.4.0";>https://github.com/openzipkin/zipkin-reporter-java/compare/3.3.0..3.4.0</a></p>
   <p>Zipkin Reporter 3.3 adds a <a 
href="https://github.com/openzipkin/zipkin-reporter-java/blob/master/core/src/main/java/zipkin2/reporter/BaseHttpSender.java";><code>BaseHttpSender</code></a>
 type, which eases http library integration. It also adds <a 
href="https://github.com/openzipkin/zipkin-reporter-java/blob/master/core/src/main/java/zipkin2/reporter/HttpEndpointSupplier.java";><code>HttpEndpointSupplier</code></a>
 which supports dynamic endpoint discovery such as from <a 
href="https://github.com/Netflix/eureka";>Eureka</a>, as well utilities to 
create constants or rate-limit suppliers. Finally, brave users get a native 
PROTO3 encoder through the new <a 
href="https://github.com/openzipkin/zipkin-reporter-java/blob/master/brave/src/main/java/zipkin2/reporter/brave/MutableSpanBytesEncoder.java";><code>MutableSpanBytesEncoder</code></a>
 type.</p>
   <p>These features were made in support of spring-boot, but available to any 
user with no new dependencies. For example, the PROTO encoder adds no library 
dependency, even if it increases the size of <a 
href="https://github.com/openzipkin/zipkin-reporter-java?tab=readme-ov-file#brave";>zipkin-reporter-brave
 </a> by a couple dozen KB. A lion's share of thanks goes to <a 
href="https://github.com/reta";><code>@​reta</code></a> and <a 
href="https://github.com/anuraaga";><code>@​anuraaga</code></a> who were on 
design and review duty for several days leading to this.</p>
   <p>Here's an example of pulling most of these things together, integrating a 
sender with <a 
href="https://github.com/openzipkin/zipkin-reporter-java?tab=readme-ov-file#brave";>spring-cloud-loadbalancer</a>
 (a client-side loadbalancer library).</p>
   <p>This endpoint supplier will get the configuration endpoint value and look 
up the next target to use with the <code>loadBalancerClient</code>. The rate 
limiter will ensure a gap of 30 seconds between queries. While below is 
hard-coded, it covers some routine advanced features formerly only available in 
<a 
href="https://github.com/spring-cloud/spring-cloud-sleuth";>spring-cloud-sleuth</a>.
 Now, anyone can use them!</p>
   <pre lang="java"><code>@Configuration(proxyBeanMethods = false)
   public class ZipkinDiscoveryConfiguration {
     @Bean HttpEndpointSupplier.Factory 
loadbalancerEndpoints(LoadBalancerClient loadBalancerClient) {
       LoadBalancerHttpEndpointSupplier.Factory httpEndpointSupplierFactory =
           new LoadBalancerHttpEndpointSupplier.Factory(loadBalancerClient);
       // don't ask more than 30 seconds (just to show)
       return 
HttpEndpointSuppliers.newRateLimitedFactory(httpEndpointSupplierFactory, 30);
     }
   <p>record LoadBalancerHttpEndpointSupplier(LoadBalancerClient 
loadBalancerClient, URI virtualURL)
   implements HttpEndpointSupplier {
   record Factory(LoadBalancerClient loadBalancerClient) implements 
HttpEndpointSupplier.Factory {</p>
   <pre><code>  @Override public HttpEndpointSupplier create(String endpoint) {
       return new LoadBalancerHttpEndpointSupplier(loadBalancerClient, 
URI.create(endpoint));
     }
   }
   
   @Override public String get() {
     ServiceInstance instance = loadBalancerClient.choose(virtualURL.getHost());
     if (instance != null) {
       return instance.getUri() + virtualURL.getPath();
     }
     throw new IllegalArgumentException(virtualURL.getHost() + &amp;quot; is 
not registered&amp;quot;);
   }
   
   @Override public void close() {
   }
   </code></pre>
   <p>&lt;/tr&gt;&lt;/table&gt;
   </code></pre></p>
   </blockquote>
   <p>... (truncated)</p>
   </details>
   <details>
   <summary>Commits</summary>
   <ul>
   <li><a 
href="https://github.com/openzipkin/zipkin-reporter-java/commit/0af48b8d430936b95e9f6364003f6094fdb47bf7";><code>0af48b8</code></a>
 [maven-release-plugin] prepare release 3.4.0</li>
   <li><a 
href="https://github.com/openzipkin/zipkin-reporter-java/commit/22b67279af0a791baee764e06560362948054e4b";><code>22b6727</code></a>
 Adds spring-beans context test and defaults to Spring 5 (<a 
href="https://redirect.github.com/openzipkin/zipkin-reporter-java/issues/265";>#265</a>)</li>
   <li><a 
href="https://github.com/openzipkin/zipkin-reporter-java/commit/fcc67bb6c3e65f737e994a5480d93edfcb57107e";><code>fcc67bb</code></a>
 Deprecates AsyncReporter/SpanHandler queuedMaxBytes (<a 
href="https://redirect.github.com/openzipkin/zipkin-reporter-java/issues/264";>#264</a>)</li>
   <li><a 
href="https://github.com/openzipkin/zipkin-reporter-java/commit/e54db40690be1851833a7a2f8e5e392afc32eea6";><code>e54db40</code></a>
 ci: adds lint check, fixes yaml formatting and unnecessary auth (<a 
href="https://redirect.github.com/openzipkin/zipkin-reporter-java/issues/263";>#263</a>)</li>
   <li><a 
href="https://github.com/openzipkin/zipkin-reporter-java/commit/f30ee664716116cc28b245b302c05cf906fed304";><code>f30ee66</code></a>
 AsyncReporter/SpanHandler: make queuedMaxBytes=0 disable pre-flight size 
chec...</li>
   <li><a 
href="https://github.com/openzipkin/zipkin-reporter-java/commit/0c62f8b421a13bab3593017c58f6297138b64769";><code>0c62f8b</code></a>
 benchmarks: moves dependency scope to test (<a 
href="https://redirect.github.com/openzipkin/zipkin-reporter-java/issues/262";>#262</a>)</li>
   <li><a 
href="https://github.com/openzipkin/zipkin-reporter-java/commit/939b6e4f9fc3897da23bbd23486b7e7b75e77d6d";><code>939b6e4</code></a>
 deps: fix kafka floor JRE to 8 and updates all libs to latest (<a 
href="https://redirect.github.com/openzipkin/zipkin-reporter-java/issues/261";>#261</a>)</li>
   <li><a 
href="https://github.com/openzipkin/zipkin-reporter-java/commit/16686ce211b4d9bc8b38f9ef46b526b2173001f5";><code>16686ce</code></a>
 license: removes copyright year and uses SPDX ID (<a 
href="https://redirect.github.com/openzipkin/zipkin-reporter-java/issues/257";>#257</a>)</li>
   <li><a 
href="https://github.com/openzipkin/zipkin-reporter-java/commit/f3b9cf7ce96e184031241c81792e058ca8f14628";><code>f3b9cf7</code></a>
 [maven-release-plugin] prepare for next development iteration</li>
   <li><a 
href="https://github.com/openzipkin/zipkin-reporter-java/commit/9b4489e7c9f12ae0f304910f5487b9669b4ad11e";><code>9b4489e</code></a>
 [maven-release-plugin] prepare release 3.3.0</li>
   <li>Additional commits viewable in <a 
href="https://github.com/openzipkin/zipkin-reporter-java/compare/2.17.1...3.4.0";>compare
 view</a></li>
   </ul>
   </details>
   <br />
   
   
   Dependabot will resolve any conflicts with this PR as long as you don't 
alter it yourself. You can also trigger a rebase manually by commenting 
`@dependabot rebase`.
   
   [//]: # (dependabot-automerge-start)
   [//]: # (dependabot-automerge-end)
   
   ---
   
   <details>
   <summary>Dependabot commands and options</summary>
   <br />
   
   You can trigger Dependabot actions by commenting on this PR:
   - `@dependabot rebase` will rebase this PR
   - `@dependabot recreate` will recreate this PR, overwriting any edits that 
have been made to it
   - `@dependabot merge` will merge this PR after your CI passes on it
   - `@dependabot squash and merge` will squash and merge this PR after your CI 
passes on it
   - `@dependabot cancel merge` will cancel a previously requested merge and 
block automerging
   - `@dependabot reopen` will reopen this PR if it is closed
   - `@dependabot close` will close this PR and stop Dependabot recreating it. 
You can achieve the same result by closing it manually
   - `@dependabot show <dependency name> ignore conditions` will show all of 
the ignore conditions of the specified dependency
   - `@dependabot ignore this major version` will close this PR and stop 
Dependabot creating any more for this major version (unless you reopen the PR 
or upgrade to it yourself)
   - `@dependabot ignore this minor version` will close this PR and stop 
Dependabot creating any more for this minor version (unless you reopen the PR 
or upgrade to it yourself)
   - `@dependabot ignore this dependency` will close this PR and stop 
Dependabot creating any more for this dependency (unless you reopen the PR or 
upgrade to it yourself)
   
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to