dependabot[bot] opened a new pull request, #4250: URL: https://github.com/apache/servicecomb-java-chassis/pull/4250
Bumps `zipkin-reporter.version` from 2.17.1 to 3.3.0. Updates `io.zipkin.reporter2:zipkin-reporter` from 2.17.1 to 3.3.0 Updates `io.zipkin.reporter2:zipkin-sender-okhttp3` from 2.17.1 to 3.3.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.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() + &quot; is not registered&quot;); } @Override public void close() { } @Override public String toString() { return &quot;LoadBalancer{&quot; + virtualURL + &quot;}&quot;; } </code></pre> <p>} } </code></pre></p> <p><strong>Full Changelog</strong>: <a href="https://github.com/openzipkin/zipkin-reporter-java/compare/3.2.1..3.3.0">https://github.com/openzipkin/zipkin-reporter-java/compare/3.2.1..3.3.0</a></p> <p>Zipkin Reporter 3.2 deprecates <code>Sender</code> for a simpler type <code>BytesMessageSender</code>. This only supports synchronous invocation (as used by the async reporters in the reporting thread) and requires senders to pass an empty list vs a complicated and usually implemented <code>check()</code> function. The result is being able to implement a custom sender in less than 50 lines including imports like below! Thank a lot to <a href="https://github.com/anuraaga"><code>@anuraaga</code></a> and <a href="https://github.com/reta"><code>@reta</code></a> for the review on this.</p> <pre lang="java"><code>package brave.example; </tr></table> </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <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><a href="https://github.com/openzipkin/zipkin-reporter-java/commit/ee69d437b6ad9eca29740f683ef91d704775db0d"><code>ee69d43</code></a> Renames HttpSender to BaseHttpSender (<a href="https://redirect.github.com/openzipkin/zipkin-reporter-java/issues/256">#256</a>)</li> <li><a href="https://github.com/openzipkin/zipkin-reporter-java/commit/9f3a99aa13895a5705198e959c9527db9107772d"><code>9f3a99a</code></a> Adds rate limited HTTP endpoint supplier and factory (<a href="https://redirect.github.com/openzipkin/zipkin-reporter-java/issues/255">#255</a>)</li> <li><a href="https://github.com/openzipkin/zipkin-reporter-java/commit/51bac2ac8c41723ee1bfaf6f3d0540396b2a44fa"><code>51bac2a</code></a> Makes constant endpoint an api with implementations available (<a href="https://redirect.github.com/openzipkin/zipkin-reporter-java/issues/254">#254</a>)</li> <li><a href="https://github.com/openzipkin/zipkin-reporter-java/commit/ec4e01c3f27a9746ec80d8d401249e90bfcd3c15"><code>ec4e01c</code></a> Adds HttpSender to aid proper handling of HttpEndpointSupplier (<a href="https://redirect.github.com/openzipkin/zipkin-reporter-java/issues/253">#253</a>)</li> <li><a href="https://github.com/openzipkin/zipkin-reporter-java/commit/be5082030f796a23c5a735536877f98e1677c3af"><code>be50820</code></a> brave: adds PROTO3 encoding (<a href="https://redirect.github.com/openzipkin/zipkin-reporter-java/issues/252">#252</a>)</li> <li><a href="https://github.com/openzipkin/zipkin-reporter-java/commit/bb3f5b77c85e31a82122120eaed228fe8fc0b1d5"><code>bb3f5b7</code></a> Decreases switch statements and deprecates BytesMessageEncoder (<a href="https://redirect.github.com/openzipkin/zipkin-reporter-java/issues/250">#250</a>)</li> <li><a href="https://github.com/openzipkin/zipkin-reporter-java/commit/b5fbad86b132c3932bcdc89f76a677e520c4e335"><code>b5fbad8</code></a> Pulls up ConstantHttpEndpointSupplier (<a href="https://redirect.github.com/openzipkin/zipkin-reporter-java/issues/251">#251</a>)</li> <li><a href="https://github.com/openzipkin/zipkin-reporter-java/commit/0f03cf6163c98b523ff62d98019bca4a47341843"><code>0f03cf6</code></a> Adds HttpEndpointSupplier to allow generic discovery of HTTP endpoints (<a href="https://redirect.github.com/openzipkin/zipkin-reporter-java/issues/249">#249</a>)</li> <li><a href="https://github.com/openzipkin/zipkin-reporter-java/commit/334499c531e2a03f0cc35cfd0d1ff1e17519af93"><code>334499c</code></a> [maven-release-plugin] prepare for next development iteration</li> <li>Additional commits viewable in <a href="https://github.com/openzipkin/zipkin-reporter-java/compare/2.17.1...3.3.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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
