Skip to content

Commit 7dcd132

Browse files
deps: updates all dependencies, notably Kafka (#1419)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
1 parent 91fcd8e commit 7dcd132

File tree

11 files changed

+42
-19
lines changed

11 files changed

+42
-19
lines changed

.github/workflows/create_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
distribution: 'zulu' # zulu as it supports a wide version range
2727
java-version: '11' # earliest LTS and last that can compile the 1.6 release profile.
2828
- name: Cache local Maven repository
29-
uses: actions/cache@v3
29+
uses: actions/cache@v4
3030
with:
3131
path: ~/.m2/repository
3232
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
distribution: 'zulu' # zulu as it supports a wide version range
4040
java-version: '11' # earliest LTS and last that can compile the 1.6 release profile.
4141
- name: Cache local Maven repository
42-
uses: actions/cache@v3
42+
uses: actions/cache@v4
4343
with:
4444
path: ~/.m2/repository
4545
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
distribution: 'zulu' # zulu as it supports a wide version range
3131
java-version: '11' # earliest LTS and last that can compile the 1.6 release profile.
3232
- name: Cache local Maven repository
33-
uses: actions/cache@v3
33+
uses: actions/cache@v4
3434
with:
3535
path: ~/.m2/repository
3636
key: ${{ runner.os }}-jdk-11-maven-${{ hashFiles('**/pom.xml') }}
@@ -60,7 +60,7 @@ jobs:
6060
distribution: 'zulu' # zulu as it supports a wide version range
6161
java-version: ${{ matrix.java_version }}
6262
- name: Cache local Maven repository
63-
uses: actions/cache@v3
63+
uses: actions/cache@v4
6464
with:
6565
path: ~/.m2/repository
6666
key: ${{ runner.os }}-jdk-${{ matrix.java_version }}-maven-${{ hashFiles('**/pom.xml') }}

brave/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<dependency>
7878
<groupId>io.micrometer</groupId>
7979
<artifactId>micrometer-core</artifactId>
80-
<version>1.12.1</version>
80+
<version>1.12.3</version>
8181
<scope>test</scope>
8282
</dependency>
8383
<dependency>

instrumentation/benchmarks/pom.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<main.basedir>${project.basedir}/../..</main.basedir>
2929
<jmh.version>1.37</jmh.version>
3030
<!-- Note: versions above 2.2 move to jakarta package -->
31-
<undertow-servlet.version>2.2.28.Final</undertow-servlet.version>
31+
<undertow-servlet.version>2.2.30.Final</undertow-servlet.version>
3232
</properties>
3333

3434
<!-- can't import brave-bom due to build-support/go-offline.sh -->
@@ -55,7 +55,7 @@
5555
<dependency>
5656
<groupId>com.amazonaws</groupId>
5757
<artifactId>aws-xray-recorder-sdk-core</artifactId>
58-
<version>2.15.0</version>
58+
<version>2.15.1</version>
5959
</dependency>
6060

6161
<dependency>
@@ -112,6 +112,12 @@
112112
<artifactId>resteasy-client-okhttp3</artifactId>
113113
<version>1.1</version>
114114
</dependency>
115+
<!-- Avoid CVE ridden version from resteasy-client-okhttp3 -->
116+
<dependency>
117+
<groupId>org.jboss.resteasy</groupId>
118+
<artifactId>resteasy-client</artifactId>
119+
<version>${resteasy.version}</version>
120+
</dependency>
115121

116122
<dependency>
117123
<groupId>${project.groupId}</groupId>

instrumentation/benchmarks/src/main/java/brave/kafka/clients/TracingProducerBenchmarks.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import org.apache.kafka.common.MetricName;
3131
import org.apache.kafka.common.PartitionInfo;
3232
import org.apache.kafka.common.TopicPartition;
33+
import org.apache.kafka.common.Uuid;
3334
import org.apache.kafka.common.errors.ProducerFencedException;
3435
import org.openjdk.jmh.annotations.Benchmark;
3536
import org.openjdk.jmh.annotations.BenchmarkMode;
@@ -131,6 +132,10 @@ public Future<RecordMetadata> send(ProducerRecord<String, String> record, Callba
131132
return null;
132133
}
133134

135+
@Override public Uuid clientInstanceId(Duration duration) {
136+
return null;
137+
}
138+
134139
@Override public void close() {
135140
}
136141

instrumentation/httpclient5/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<main.basedir>${project.basedir}/../..</main.basedir>
3434

3535
<!-- To obey the integration tests, we need to use the version >= 5.2 -->
36-
<httpclient5.version>5.3</httpclient5.version>
36+
<httpclient5.version>5.3.1</httpclient5.version>
3737
</properties>
3838

3939
<dependencies>

instrumentation/kafka-clients/src/main/java/brave/kafka/clients/TracingConsumer.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2022 The OpenZipkin Authors
2+
* Copyright 2013-2024 The OpenZipkin Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
55
* in compliance with the License. You may obtain a copy of the License at
@@ -42,6 +42,7 @@
4242
import org.apache.kafka.common.MetricName;
4343
import org.apache.kafka.common.PartitionInfo;
4444
import org.apache.kafka.common.TopicPartition;
45+
import org.apache.kafka.common.Uuid;
4546

4647
/**
4748
* Kafka Consumer decorator. Read records headers to create and complete a child of the incoming
@@ -254,6 +255,11 @@ public Map<TopicPartition, OffsetAndMetadata> committed(
254255
return delegate.committed(partitions, timeout);
255256
}
256257

258+
// Do not use @Override annotation to avoid compatibility issue version < 3.7
259+
public Uuid clientInstanceId(Duration duration) {
260+
return delegate.clientInstanceId(duration);
261+
}
262+
257263
@Override public Map<MetricName, ? extends Metric> metrics() {
258264
return delegate.metrics();
259265
}

instrumentation/kafka-clients/src/main/java/brave/kafka/clients/TracingProducer.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import org.apache.kafka.common.MetricName;
3939
import org.apache.kafka.common.PartitionInfo;
4040
import org.apache.kafka.common.TopicPartition;
41+
import org.apache.kafka.common.Uuid;
4142
import org.apache.kafka.common.errors.ProducerFencedException;
4243

4344
final class TracingProducer<K, V> implements Producer<K, V> {
@@ -149,6 +150,11 @@ public Future<RecordMetadata> send(ProducerRecord<K, V> record, @Nullable Callba
149150
return delegate.metrics();
150151
}
151152

153+
// Do not use @Override annotation to avoid compatibility issue version < 3.7
154+
public Uuid clientInstanceId(Duration duration) {
155+
return delegate.clientInstanceId(duration);
156+
}
157+
152158
@Override public void close() {
153159
delegate.close();
154160
}

instrumentation/mysql8/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<dependency>
4141
<groupId>com.mysql</groupId>
4242
<artifactId>mysql-connector-j</artifactId>
43-
<version>8.2.0</version>
43+
<version>8.3.0</version>
4444
<scope>provided</scope>
4545
</dependency>
4646

0 commit comments

Comments
 (0)