From 0cea1a1c55269e8b711f4f5473a5420810feae1e Mon Sep 17 00:00:00 2001 From: Crypt Keeper <64215+codefromthecrypt@users.noreply.github.com> Date: Tue, 9 Jan 2024 08:10:11 +0800 Subject: [PATCH] Prepares for release by updating to Brave 5.18 (#207) Note after we release, we should bump major when updating to zipkin-reporter 3.0.1 Signed-off-by: Adrian Cole --- pom.xml | 75 ++++++------------- .../StackdriverTracePropagation.java | 2 + .../StackdriverTracePropagation.java | 13 +++- 3 files changed, 35 insertions(+), 55 deletions(-) diff --git a/pom.xml b/pom.xml index f8e48e98..4078dca2 100644 --- a/pom.xml +++ b/pom.xml @@ -55,10 +55,20 @@ UTF-8 ${project.basedir} - 1.8 - java18 - + + 1.8 + 1.8 + + 8 + + + 11 + 11 + 11 + + io.zipkin.zipkin2 @@ -73,7 +83,7 @@ io.zipkin.brave - 5.17.1 + 5.18.1 1.58.0 @@ -92,22 +102,26 @@ 1.125.13 1.107.13 - 3.24.2 + 3.25.1 4.2.0 5.10.1 5.8.0 - 2.23.0 + 2.24.1 + 1.10.4 ${skipTests} - 1.23 + + + 1.2.8 4.3 - 3.11.0 + 5.1.9 + 3.12.1 3.6.1 3.1.1 @@ -115,12 +129,12 @@ 3.4.0 3.1.1 - 3.6.2 + 3.6.3 3.3.0 3.0.1 3.5.1 3.3.0 - 3.2.2 + 3.2.3 1.6.13 @@ -212,13 +226,6 @@ - - org.codehaus.mojo.signature - ${main.signature.artifact} - 1.0 - signature - MAIN - com.mycila license-maven-plugin-git @@ -298,10 +305,7 @@ ${maven-compiler-plugin.version} true - ${main.java.version} - ${main.java.version} true - 8 true @@ -312,9 +316,6 @@ false - - -Dnet.bytebuddy.experimental=true false - - -Dnet.bytebuddy.experimental=true - - - - - - org.codehaus.mojo - animal-sniffer-maven-plugin - ${animal-sniffer-maven-plugin.version} - - false - ${skipTests} - - org.codehaus.mojo.signature - ${main.signature.artifact} - 1.0 - - - - - check - - - @@ -524,8 +499,6 @@ ${maven-compiler-plugin.version} true - ${main.java.version} - ${main.java.version} true true diff --git a/propagation-stackdriver/src/main/java/brave/propagation/stackdriver/StackdriverTracePropagation.java b/propagation-stackdriver/src/main/java/brave/propagation/stackdriver/StackdriverTracePropagation.java index a11b0953..d41e9e05 100644 --- a/propagation-stackdriver/src/main/java/brave/propagation/stackdriver/StackdriverTracePropagation.java +++ b/propagation-stackdriver/src/main/java/brave/propagation/stackdriver/StackdriverTracePropagation.java @@ -57,6 +57,8 @@ static final class Factory extends Propagation.Factory { * @deprecated end users and instrumentation should never call this, and instead use * {@link #get()}. This only remains to avoid rev-lock upgrading to Brave 6. */ + // This only exists for spring-cloud-sleuth, which is no longer being released. It hasn't and + // might not upgrade to Brave 5.18 which implements the same way. @Deprecated public Propagation create(KeyFactory unused) { throw new UnsupportedOperationException("As of Brave 5.12, call PropagationFactory.get()"); } diff --git a/propagation-stackdriver/src/main/java/zipkin2/propagation/stackdriver/StackdriverTracePropagation.java b/propagation-stackdriver/src/main/java/zipkin2/propagation/stackdriver/StackdriverTracePropagation.java index 524e64d9..665cdbc6 100644 --- a/propagation-stackdriver/src/main/java/zipkin2/propagation/stackdriver/StackdriverTracePropagation.java +++ b/propagation-stackdriver/src/main/java/zipkin2/propagation/stackdriver/StackdriverTracePropagation.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2020 The OpenZipkin Authors + * Copyright 2016-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -37,9 +37,14 @@ public final class StackdriverTracePropagation implements Propagation { return new StackdriverTracePropagation<>(DELEGATE.get(), KeyFactory.STRING); } - @Override - public Propagation create(KeyFactory keyFactory) { - return new StackdriverTracePropagation<>(DELEGATE.create(keyFactory), keyFactory); + /** + * @deprecated end users and instrumentation should never call this, and instead use + * {@link #get()}. This only remains to avoid rev-lock upgrading to Brave 6. + */ + // This only exists for spring-cloud-sleuth, which is no longer being released. It hasn't and + // might not upgrade to Brave 5.18 which implements the same way. + @Deprecated public Propagation create(KeyFactory unused) { + throw new UnsupportedOperationException("As of Brave 5.12, call PropagationFactory.get()"); } @Override